예제 #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();
 }