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