public CacheManagementDemoMigrationsDbContext CreateDbContext(string[] args)
        {
            CacheManagementDemoEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new CacheManagementDemoMigrationsDbContext(builder.Options));
        }
Exemple #2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     CacheManagementDemoEfCoreEntityExtensionMappings.Configure();
 }