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