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