public AQFWSMigrationsDbContext CreateDbContext(string[] args)
        {
            AQFWSEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new AQFWSMigrationsDbContext(builder.Options));
        }
Ejemplo n.º 2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     AQFWSEfCoreEntityExtensionMappings.Configure();
 }