This commit is contained in:
2026-03-25 14:55:34 +08:00
commit 2c44b3a4b2
131 changed files with 7453 additions and 0 deletions

2
ef_scaffolds/Program.cs Normal file
View File

@@ -0,0 +1,2 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");

2
ef_scaffolds/README.md Normal file
View File

@@ -0,0 +1,2 @@
# ef db-first 迁移用项目,开发时使用
``dotnet ef dbcontext scaffold "Server=localhost;Port=5432;Database=stop_shopping;User Id=stopshopping;Password=gx24601...;" Npgsql.EntityFrameworkCore.PostgreSQL -p ../StopShopping.EF -o Models --context-dir ./ --no-onconfiguring -f``

View File

@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\StopShopping.EF\StopShopping.EF.csproj" />
</ItemGroup>
</Project>