Esempio n. 1
0
        public MyThemeMigrationsDbContext CreateDbContext(string[] args)
        {
            MyThemeEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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