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

            ASPNetCoreAngularAppDbContextConfigurer.Configure(builder, configuration.GetConnectionString(ASPNetCoreAngularAppConsts.ConnectionStringName));

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