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