Esempio n. 1
0
        public ViDesignMigrationsDbContext CreateDbContext(string[] args)
        {
            ViDesignEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new ViDesignMigrationsDbContext(builder.Options));
        }
Esempio n. 2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     ViDesignEfCoreEntityExtensionMappings.Configure();
 }