Ejemplo n.º 1
0
        public DatabaseBackedCreatureTemplateEntryRepository([NotNull] ContentDatabaseContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            Context = context;

            GenericRepository = new GeneralGenericCrudRepositoryProvider <int, CreatureTemplateEntryModel>(context.Set <CreatureTemplateEntryModel>(), context);
        }
Ejemplo n.º 2
0
        public DatabaseBackedCreatureEntryRepository([JetBrains.Annotations.NotNull] ContentDatabaseContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            Context = context;

            GenericRepository = new GeneralGenericCrudRepositoryProvider <int, CreatureEntryModel>(context.Creatures, context);
        }
Ejemplo n.º 3
0
        protected GenericDatabaseBackedGameObjectBehaviorEntryRepository([JetBrains.Annotations.NotNull] ContentDatabaseContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            Context = context;

            GenericRepository = new GeneralGenericCrudRepositoryProvider <int, TEntryType>(context.Set <TEntryType>(), context);
        }
Ejemplo n.º 4
0
 public DatabaseBackedAvatarPedestalEntryRepository([JetBrains.Annotations.NotNull] ContentDatabaseContext context)
     : base(context)
 {
 }
Ejemplo n.º 5
0
 public DatabaseBackedGameObjectModelEntryRepository(ContentDatabaseContext databaseContext)
     : base(databaseContext)
 {
 }
Ejemplo n.º 6
0
 public DatabaseBackedWorldTeleporterEntryRepository([JetBrains.Annotations.NotNull] ContentDatabaseContext context)
     : base(context)
 {
 }
Ejemplo n.º 7
0
 /// <inheritdoc />
 public DatabaseBackedWorldEntryRepository(ContentDatabaseContext databaseContext)
 {
     DatabaseContext   = databaseContext ?? throw new ArgumentNullException(nameof(databaseContext));
     DefaultRepository = new GeneralGenericCrudRepositoryProvider <long, WorldEntryModel>(databaseContext.Worlds, databaseContext);
 }
Ejemplo n.º 8
0
 public DatabaseBackedCreatureModelEntryRepository(ContentDatabaseContext databaseContext)
     : base(databaseContext)
 {
 }
Ejemplo n.º 9
0
 /// <inheritdoc />
 protected BaseCustomContentRepository(ContentDatabaseContext databaseContext)
 {
     DatabaseContext   = databaseContext ?? throw new ArgumentNullException(nameof(databaseContext));
     DefaultRepository = new GeneralGenericCrudRepositoryProvider <long, TCustomContentModelType>(databaseContext.Set <TCustomContentModelType>(), databaseContext);
 }