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

            var configuration = BuildConfiguration();

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

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