From 9d6097f6d173d1ddbdd2fe5fd44b4d6daf6e9d93 Mon Sep 17 00:00:00 2001 From: VictoriaPresnyakova Date: Sat, 22 Apr 2023 21:01:25 +0400 Subject: [PATCH] TransportGuideDB --- TransportGuide/TransportGuide.csproj | 4 ++++ TransportGuide/TransportGuide.sln | 6 ++++++ .../TransportGuideDataModels.csproj | 4 ++++ .../TransportGuideDB.cs | 20 +++++++++++++++++++ .../TransportGuideDatabaseImplements.csproj | 18 +++++++++++++++++ 5 files changed, 52 insertions(+) create mode 100644 TransportGuideDatabaseImplements/TransportGuideDB.cs create mode 100644 TransportGuideDatabaseImplements/TransportGuideDatabaseImplements.csproj diff --git a/TransportGuide/TransportGuide.csproj b/TransportGuide/TransportGuide.csproj index b57c89e..8ca4945 100644 --- a/TransportGuide/TransportGuide.csproj +++ b/TransportGuide/TransportGuide.csproj @@ -8,4 +8,8 @@ enable + + + + \ No newline at end of file diff --git a/TransportGuide/TransportGuide.sln b/TransportGuide/TransportGuide.sln index 5f53a0d..70569e6 100644 --- a/TransportGuide/TransportGuide.sln +++ b/TransportGuide/TransportGuide.sln @@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TransportGuide", "Transport EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TransportGuideDataModels", "..\TransportGuideDataModels\TransportGuideDataModels.csproj", "{97F50689-60B7-4955-9CF0-01CBCA875DEC}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TransportGuideDatabaseImplements", "..\TransportGuideDatabaseImplements\TransportGuideDatabaseImplements.csproj", "{EB404893-A2A8-4027-B5DD-3AB781274B4D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -21,6 +23,10 @@ Global {97F50689-60B7-4955-9CF0-01CBCA875DEC}.Debug|Any CPU.Build.0 = Debug|Any CPU {97F50689-60B7-4955-9CF0-01CBCA875DEC}.Release|Any CPU.ActiveCfg = Release|Any CPU {97F50689-60B7-4955-9CF0-01CBCA875DEC}.Release|Any CPU.Build.0 = Release|Any CPU + {EB404893-A2A8-4027-B5DD-3AB781274B4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EB404893-A2A8-4027-B5DD-3AB781274B4D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EB404893-A2A8-4027-B5DD-3AB781274B4D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EB404893-A2A8-4027-B5DD-3AB781274B4D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/TransportGuideDataModels/TransportGuideDataModels.csproj b/TransportGuideDataModels/TransportGuideDataModels.csproj index 27ac386..e3cec15 100644 --- a/TransportGuideDataModels/TransportGuideDataModels.csproj +++ b/TransportGuideDataModels/TransportGuideDataModels.csproj @@ -6,4 +6,8 @@ enable + + + + diff --git a/TransportGuideDatabaseImplements/TransportGuideDB.cs b/TransportGuideDatabaseImplements/TransportGuideDB.cs new file mode 100644 index 0000000..5a5286e --- /dev/null +++ b/TransportGuideDatabaseImplements/TransportGuideDB.cs @@ -0,0 +1,20 @@ +using Microsoft.EntityFrameworkCore; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TransportGuideDatabaseImplements +{ + public class TransportGuideDB : DbContext + { + public TransportGuideDB() { } + + public TransportGuideDB(DbContextOptions options) + : base(options) + { + } + + } +} diff --git a/TransportGuideDatabaseImplements/TransportGuideDatabaseImplements.csproj b/TransportGuideDatabaseImplements/TransportGuideDatabaseImplements.csproj new file mode 100644 index 0000000..adebbf7 --- /dev/null +++ b/TransportGuideDatabaseImplements/TransportGuideDatabaseImplements.csproj @@ -0,0 +1,18 @@ + + + + net6.0 + enable + enable + + + + + + + + + + + +