Possible to add migration using EF DbMigrator

430 Views Asked by At

Is it possible to add a migration file using DbMigrator in code instead of through the powershell commands?

1

There are 1 best solutions below

2
On

DbMigrator is class for running migrations. Classes for creating migration are in System.Data.Entity.Migrations.Design. ToolingFacade is called by powershell commands. Other classes represents low level API for creating migration code.