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

            var configuration = BuildConfiguration();

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

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