예제 #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);
 }