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