예제 #1
0
        public ProgecDoMigrationsDbContext CreateDbContext(string[] args)
        {
            ProgecDoEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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