public AbpIoAzureDevopsMigrationsDbContext CreateDbContext(string[] args)
        {
            AbpIoAzureDevopsEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new AbpIoAzureDevopsMigrationsDbContext(builder.Options));
        }
예제 #2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     AbpIoAzureDevopsEfCoreEntityExtensionMappings.Configure();
 }