public DisableAuditingTestMigrationsDbContext CreateDbContext(string[] args) { DisableAuditingTestEfCoreEntityExtensionMappings.Configure(); var configuration = BuildConfiguration(); var builder = new DbContextOptionsBuilder <DisableAuditingTestMigrationsDbContext>() .UseSqlServer(configuration.GetConnectionString("Default")); return(new DisableAuditingTestMigrationsDbContext(builder.Options)); }
public override void PreConfigureServices(ServiceConfigurationContext context) { DisableAuditingTestEfCoreEntityExtensionMappings.Configure(); }