Friday, 21 April 2017

Entity framework migrations commands


Enable Migration Command:

Enable-Migrations -MigrationsDirectory "Migrations" -ContextTypeName Contracts.Migrations

Add Migration:

Add-Migration 
after press enter :
Name:migration_name

Update Database:

update-database -Configuration Contracts.Migrations -verbose -force

No comments:

Post a Comment