React to EF name changes
This commit is contained in:
parent
4aa1d4b1b7
commit
33a673cd35
|
|
@ -50,7 +50,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity
|
||||||
|
|
||||||
public virtual void Log(LogLevel logLevel, int eventId, [CanBeNull] object state, [CanBeNull] Exception exception, [CanBeNull] Func<object, Exception, string> formatter)
|
public virtual void Log(LogLevel logLevel, int eventId, [CanBeNull] object state, [CanBeNull] Exception exception, [CanBeNull] Func<object, Exception, string> formatter)
|
||||||
{
|
{
|
||||||
var errorState = state as DataStoreErrorLogState;
|
var errorState = state as DatabaseErrorLogState;
|
||||||
if (errorState != null && exception != null && LastError != null)
|
if (errorState != null && exception != null && LastError != null)
|
||||||
{
|
{
|
||||||
LastError.SetError(errorState.ContextType, exception);
|
LastError.SetError(errorState.ContextType, exception);
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var creator = dbContext.GetService<IDataStoreCreator>() as IRelationalDataStoreCreator;
|
var creator = dbContext.GetService<IDatabaseCreator>() as IRelationalDatabaseCreator;
|
||||||
if (creator == null)
|
if (creator == null)
|
||||||
{
|
{
|
||||||
_logger.LogVerbose(Strings.DatabaseErrorPage_NotRelationalDatabase);
|
_logger.LogVerbose(Strings.DatabaseErrorPage_NotRelationalDatabase);
|
||||||
|
|
|
||||||
|
|
@ -194,7 +194,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity.Tests
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
optionsBuilder.UseInMemoryStore();
|
optionsBuilder.UseInMemoryDatabase();
|
||||||
}
|
}
|
||||||
services.AddInstance<DbContextOptions>(optionsBuilder.Options);
|
services.AddInstance<DbContextOptions>(optionsBuilder.Options);
|
||||||
});
|
});
|
||||||
|
|
@ -322,7 +322,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity.Tests
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
optionsBuilder.UseInMemoryStore();
|
optionsBuilder.UseInMemoryDatabase();
|
||||||
}
|
}
|
||||||
services.AddInstance(optionsBuilder.Options);
|
services.AddInstance(optionsBuilder.Options);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ namespace Microsoft.Data.Entity.Tests
|
||||||
{
|
{
|
||||||
public static EntityFrameworkServicesBuilder AddProviderServices(this EntityFrameworkServicesBuilder entityServicesBuilder)
|
public static EntityFrameworkServicesBuilder AddProviderServices(this EntityFrameworkServicesBuilder entityServicesBuilder)
|
||||||
{
|
{
|
||||||
return entityServicesBuilder.AddInMemoryStore();
|
return entityServicesBuilder.AddInMemoryDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static DbContextOptions UseProviderOptions(this DbContextOptions options)
|
public static DbContextOptions UseProviderOptions(this DbContextOptions options)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue