Enable Migration Command:
Enable-Migrations -MigrationsDirectory "Migrations" -ContextTypeName Contracts.MigrationsAdd Migration:
Add-Migration
after press enter :
Name:migration_name
Update Database:
update-database -Configuration Contracts.Migrations -verbose -force
No comments:
Post a Comment