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

            SoftwareEstimationDbContextConfigurer.Configure(builder, configuration.GetConnectionString(SoftwareEstimationConsts.ConnectionStringName));

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