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