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