示例#1
0
        public Foo400MigrationsDbContext CreateDbContext(string[] args)
        {
            Foo400EfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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