How to Use Migrations in ASP NET CORE 6 0. Entity framework core migrations

preview_player
Показать описание
In Entity Framework Core, when there is a change in the model, the database tables are also needed to be updated to keep everything in sync for the proper working of the application.
To update or generate the change in the ongoing model, the Migration method is used, it allows the developer to update the data without losing it.
Also, the migration method can be used to update and generate change in the Database tables, based on the Model.
Migrations make it easy for the developer to change and update the data of the application, otherwise, all the codes had to be re-written manually.
In Entity Framework Core, migration method can help in multiple numbers of tasks, such as:
Creating Migration.
Update or create Database
Modify current migration code.
Remove Migration from Model.
Revert the effect of Migration.
Create SQL Scripts.
Apply Migration at Runtime.
All these tasks can be applied with the help of the Migration method.
Рекомендации по теме
Комментарии
Автор

you really helped me brother
you earned a sub

divyanshchaudhary
Автор

Thank you my brother.
You got the sub and like.

nagyrichardtihamer