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