Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #4
0
 public DatabaseBackedAvatarPedestalEntryRepository([JetBrains.Annotations.NotNull] ContentDatabaseContext context)
     : base(context)
 {
 }
Пример #5
0
 public DatabaseBackedGameObjectModelEntryRepository(ContentDatabaseContext databaseContext)
     : base(databaseContext)
 {
 }
Пример #6
0
 public DatabaseBackedWorldTeleporterEntryRepository([JetBrains.Annotations.NotNull] ContentDatabaseContext context)
     : base(context)
 {
 }
Пример #7
0
 /// <inheritdoc />
 public DatabaseBackedWorldEntryRepository(ContentDatabaseContext databaseContext)
 {
     DatabaseContext   = databaseContext ?? throw new ArgumentNullException(nameof(databaseContext));
     DefaultRepository = new GeneralGenericCrudRepositoryProvider <long, WorldEntryModel>(databaseContext.Worlds, databaseContext);
 }
Пример #8
0
 public DatabaseBackedCreatureModelEntryRepository(ContentDatabaseContext databaseContext)
     : base(databaseContext)
 {
 }
Пример #9
0
 /// <inheritdoc />
 protected BaseCustomContentRepository(ContentDatabaseContext databaseContext)
 {
     DatabaseContext   = databaseContext ?? throw new ArgumentNullException(nameof(databaseContext));
     DefaultRepository = new GeneralGenericCrudRepositoryProvider <long, TCustomContentModelType>(databaseContext.Set <TCustomContentModelType>(), databaseContext);
 }