Zuletzt aktiv 2 months ago

ef_core_examples.sh Originalformat
1# Creates a new migration
2dotnet ef migrations add MigrationName --project "../Domain/Domain.csproj"
3
4# Runs the migrations
5dotnet ef database update --project "../Domain/Domain.csproj"
6
7# Creates a SQL command that matches the migration
8dotnet ef migrations script ---project "../Domain/Domain.csproj"
9
10# Checks for pending model changes
11dotnet ef migrations has-pending-model-changes --project "../Domain/Domain.csproj"
12
13# Removes the most recent migration
14dotnet ef migrations remove --project "../Domain/Domain.csproj"