Пример #1
0
        public ContabilidadMigrationsDbContext CreateDbContext(string[] args)
        {
            ContabilidadEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

            var builder = new DbContextOptionsBuilder <ContabilidadMigrationsDbContext>()
                          .UseSqlServer(configuration.GetConnectionString("Default"));

            return(new ContabilidadMigrationsDbContext(builder.Options));
        }
Пример #2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     ContabilidadEfCoreEntityExtensionMappings.Configure();
 }