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