Exemplo n.º 1
0
        public TestMigrationsDbContext CreateDbContext(string[] args)
        {
            TestEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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