![]() If you prefer to generate a SQL script from the specified from migration to the specified to migration, you could mention the from & to migration as mentioned below dotnet ef migrations script FromMigrationName ToMigrationName Generating Rollback SQL Scripts for your migrations ![]() You can also mention the migration from which you want to create the SQL Script to the latest migration by adding the from migration name as mentioned below dotnet ef migrations script FromMigrationName This defaults to the last migration in your project. The to migration is the last migration that will be applied to the database after running the script.If no migrations have been applied, specify 0 (this is the default). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |