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

            VueLearningDbContextConfigurer.Configure(builder, configuration.GetConnectionString(VueLearningConsts.ConnectionStringName));

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