public BlogMigrationsDbContext CreateDbContext(string[] args) { BlogEfCoreEntityExtensionMappings.Configure(); var configuration = BuildConfiguration(); var builder = new DbContextOptionsBuilder <BlogMigrationsDbContext>() .UseSqlServer(configuration.GetConnectionString("Default")); return(new BlogMigrationsDbContext(builder.Options)); }
public override void PreConfigureServices(ServiceConfigurationContext context) { BlogEfCoreEntityExtensionMappings.Configure(); }