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