Ejemplo n.º 1
0
        public MyAbpAppMigrationsDbContext CreateDbContext(string[] args)
        {
            MyAbpAppEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new MyAbpAppMigrationsDbContext(builder.Options));
        }
Ejemplo n.º 2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     MyAbpAppEfCoreEntityExtensionMappings.Configure();
 }