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