TransportGuideDB

This commit is contained in:
VictoriaPresnyakova 2023-04-22 21:01:25 +04:00
parent 33d66e0d1a
commit 9d6097f6d1
5 changed files with 52 additions and 0 deletions

View File

@ -8,4 +8,8 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.5" />
</ItemGroup>
</Project>

View File

@ -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

View File

@ -6,4 +6,8 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.5" />
</ItemGroup>
</Project>

View File

@ -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<TransportGuideDB> options)
: base(options)
{
}
}
}

View File

@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Folder Include="Models\" />
<Folder Include="Implements\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.5" />
</ItemGroup>
</Project>