public WhyzrMigrationsDbContext CreateDbContext(string[] args)
        {
            WhyzrEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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