コード例 #1
0
        public Qa400MigrationsDbContext CreateDbContext(string[] args)
        {
            Qa400EfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new Qa400MigrationsDbContext(builder.Options));
        }
コード例 #2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     Qa400EfCoreEntityExtensionMappings.Configure();
 }