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

            FileUploadTestDbContextConfigurer.Configure(builder, configuration.GetConnectionString(FileUploadTestConsts.ConnectionStringName));

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