public NCCTalentManagementDbContext CreateDbContext(string[] args)
        {
            var builder       = new DbContextOptionsBuilder <NCCTalentManagementDbContext>();
            var configuration = AppConfigurations.Get(WebContentDirectoryFinder.CalculateContentRootFolder());

            NCCTalentManagementDbContextConfigurer.Configure(builder, configuration.GetConnectionString(NCCTalentManagementConsts.ConnectionStringName));

            return(new NCCTalentManagementDbContext(builder.Options));
        }
 public override void PreInitialize()
 {
     if (!SkipDbContextRegistration)
     {
         Configuration.Modules.AbpEfCore().AddDbContext <NCCTalentManagementDbContext>(options =>
         {
             if (options.ExistingConnection != null)
             {
                 NCCTalentManagementDbContextConfigurer.Configure(options.DbContextOptions, options.ExistingConnection);
             }
             else
             {
                 NCCTalentManagementDbContextConfigurer.Configure(options.DbContextOptions, options.ConnectionString);
             }
         });
     }
 }