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

            AspNetBoilerplateVueDbContextConfigurer.Configure(builder, configuration.GetConnectionString(AspNetBoilerplateVueConsts.ConnectionStringName));

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