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

            CloudBaseLineDbContextConfigurer.Configure(builder, configuration.GetConnectionString(CloudBaseLineConsts.ConnectionStringName));

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