Exemple #1
0
        public LYearUiSampleMigrationsDbContext CreateDbContext(string[] args)
        {
            LYearUiSampleEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

            var builder = new DbContextOptionsBuilder <LYearUiSampleMigrationsDbContext>()
                          .UseSqlServer(configuration.GetConnectionString("Default"));

            return(new LYearUiSampleMigrationsDbContext(builder.Options));
        }
Exemple #2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     LYearUiSampleEfCoreEntityExtensionMappings.Configure();
 }