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

            Concise_CMSDbContextConfigurer.Configure(builder, configuration.GetConnectionString(Concise_CMSConsts.ConnectionStringName));

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