public MyAbpMigrationsDbContext CreateDbContext(string[] args)
        {
            MyAbpEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new MyAbpMigrationsDbContext(builder.Options));
        }
Esempio n. 2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     MyAbpEfCoreEntityExtensionMappings.Configure();
 }