public StoredProcedureDemoMigrationsDbContext CreateDbContext(string[] args)
        {
            StoredProcedureDemoEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new StoredProcedureDemoMigrationsDbContext(builder.Options));
        }
Example #2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     StoredProcedureDemoEfCoreEntityExtensionMappings.Configure();
 }