2016-11-29 51 views

回答

13

我不認爲AllMigrationsApplied實體框架中曾經存在過......

是,!context.Database.GetPendingMigrations().Any()是EFCore做到這一點的最好辦法1.1.0+。

相關問題