8_ Create database using Migrations

Publicado el: 13 julio 2020
en el canal de: Programming Tutorials
237
11

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.


En esta página del sitio puede ver el video en línea 8_ Create database using Migrations de Duración hora minuto segunda en buena calidad , que subió el usuario Programming Tutorials 13 julio 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 237 veces y le gustó 11 a los espectadores. Disfruta viendo!