React to EF change
This commit is contained in:
parent
475babfa37
commit
027cbdac04
|
|
@ -79,7 +79,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity
|
|||
{
|
||||
var databaseExists = dbContext.Database.AsRelational().Exists();
|
||||
|
||||
var migrator = ((IAccessor<Migrator>)dbContext.Database).Service;
|
||||
var migrator = ((IAccessor<IMigrator>)dbContext.Database).Service;
|
||||
|
||||
var pendingMigrations = migrator.GetUnappliedMigrations().Select(m => m.Id);
|
||||
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity.Tests
|
|||
{
|
||||
using (var db = context.ApplicationServices.GetService<BloggingContextWithPendingModelChanges>())
|
||||
{
|
||||
var migrator = ((IAccessor<Migrator>)db.Database).Service;
|
||||
var migrator = ((IAccessor<IMigrator>)db.Database).Service;
|
||||
migrator.ApplyMigrations();
|
||||
|
||||
db.Blogs.Add(new Blog());
|
||||
|
|
|
|||
Loading…
Reference in New Issue