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