public LearnAbpMigrationsDbContext CreateDbContext(string[] args)
        {
            LearnAbpEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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