Create database using Migrations
The code-based migration provides more control on the migration and allows you to configure additional things such as setting a default value of a column, configure a computed column etc.
In order to use code-based migration, you need to execute the following commands in the Package Manager Console in Visual Studio:
Enable-Migrations: Enables the migration in your project by creating a Configuration class.
Add-Migration: Creates a new migration class as per specified name with the Up() and Down() methods.
Update-Database: Executes the last migration file created by the Add-Migration command and applies changes to the database schema.
On this page of the site you can watch the video online 8_ Create database using Migrations with a duration of hours minute second in good quality, which was uploaded by the user Programming Tutorials 13 July 2020, share the link with friends and acquaintances, this video has already been watched 237 times on youtube and it was liked by 11 viewers. Enjoy your viewing!