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