✨
This commit is contained in:
2
ef_scaffolds/Program.cs
Normal file
2
ef_scaffolds/Program.cs
Normal 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
2
ef_scaffolds/README.md
Normal 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``
|
||||
21
ef_scaffolds/ef_scaffolds.csproj
Normal file
21
ef_scaffolds/ef_scaffolds.csproj
Normal 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>
|
||||
Reference in New Issue
Block a user