asp.net - Apply EF7 Migrations on Azure -
how apply ef7 migrations on azure database?
according this link, tick box in publish profile settings. well, don't have checkbox - i'm not sure if profile configuration has changed since don't have databases
section.
according this link, ef7 doesn't support database initializers , have use nuget package manager or k (dnx) migrations. i'm not sure nuget option, going dnx option: how connect azure (hosted) project/website using dnx console window or package manager console in vs?
are there other options (hopefully easier!) doing this?
here's 'new' way:
_context.database.ensurecreated(); _context.database.migrate();
simple.
my azure database somehow had migrations applied, nothing in __efmigrationshistory table, dropped other tables , ran migrations wanted it.
Comments
Post a Comment