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.
Auf dieser Seite können Sie das Online-Video 8_ Create database using Migrations mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Programming Tutorials 13 Juli 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 237 Mal angesehen und es wurde von 11 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!