In EntityFramework Core 1.1 this method does not seem to exist anymore:
DbContext.AllMigrationsApplied()
What is the preferred way of doing this now. Is it?
if (!context.Database.GetPendingMigrations().Any())
I don't think AllMigrationsApplied
ever existed in Entity Framework...
Yes, !context.Database.GetPendingMigrations().Any()
is the best way to do this in EFCore 1.1.0+.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With