![]() ![]() By understanding the usage of migration bundles, you can streamline the database migration process in your. Migration bundles offer a convenient and decoupled approach for applying database updates, providing flexibility in deployment and minimizing dependencies. In this article, we explored the concept of Entity Framework Core Migration Bundles, their advantages, and how to work with them in practical scenarios. You will find that the new column is correctly added when you check your database. INSERT INTO `_EFMigrationsHistory` (`MigrationId`, `ProductVersion`) Info: Īpplying migration '20230605155344_AddColumnIsDoneInTodo'.Įxecuted DbCommand (12ms), CommandType='Text', CommandTimeout='30']ĪLTER TABLE "Todos" ADD "IsDone" INTEGER NOT NULL DEFAULT 0 Įxecuted DbCommand (2ms), CommandType='Text', CommandTimeout='30'] ![]() SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='mytodoappdb' AND TABLE_NAME='_EFMigrationsHistory' Įxecuted DbCommand (0ms), CommandType='Text', CommandTimeout='30']Įxecuted DbCommand (1ms), CommandType='Text', CommandTimeout='30'] Info: Įxecuted DbCommand (8ms), CommandType='Text', CommandTimeout='30'] In the terminal, navigate to the folder in which your project will reside and run the following command: I set the project up to use a SQLite database. I’ve already set up an application for the purpose. Set up the sample projectĪs this article is about EF Core migration bundles, you will not spend time creating an ASP.NET Core MVC app from scratch. Now that you know what migration bundles are, let’s see how to create and manipulate them. You can then decouple your database deployment pipeline from the rest of your application. NET runtime, offering flexibility in application deployment. NET runtime is required, and you can even create self-contained bundles that include the. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |