public TablePlatformMigrationsDbContext CreateDbContext(string[] args) { TablePlatformEfCoreEntityExtensionMappings.Configure(); var configuration = BuildConfiguration(); var builder = new DbContextOptionsBuilder <TablePlatformMigrationsDbContext>() .UseSqlServer(configuration.GetConnectionString("Default")); return(new TablePlatformMigrationsDbContext(builder.Options)); }
public override void PreConfigureServices(ServiceConfigurationContext context) { TablePlatformEfCoreEntityExtensionMappings.Configure(); }