示例#1
0
        public AbpXAmisMigrationsDbContext CreateDbContext(string[] args)
        {
            AbpXAmisEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new AbpXAmisMigrationsDbContext(builder.Options));
        }
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     AbpXAmisEfCoreEntityExtensionMappings.Configure();
 }