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