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