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

            MultiplayerAvalonDbContextConfigurer.Configure(builder, configuration.GetConnectionString(MultiplayerAvalonConsts.ConnectionStringName));

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