EF Core Migrations

Create and Apply Migrations












Model class: Aluno.cs
Context file:  AppDbContext.cs

ConfigureServices method on Startup file

1 - Open console 
2 - Type: add-migration YourMigrationName
3 - Then type: update-database

Sample project Download Link



fonte e inspiração: http://www.macoratti.net/20/08/efc_migration1.htm
 

Comments