public TextTemplatingTestMigrationsDbContext CreateDbContext(string[] args)
        {
            TextTemplatingTestEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new TextTemplatingTestMigrationsDbContext(builder.Options));
        }
예제 #2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     TextTemplatingTestEfCoreEntityExtensionMappings.Configure();
 }