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