public DatabaseBackedCreatureTemplateEntryRepository([NotNull] ContentDatabaseContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } Context = context; GenericRepository = new GeneralGenericCrudRepositoryProvider <int, CreatureTemplateEntryModel>(context.Set <CreatureTemplateEntryModel>(), context); }
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); }
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); }
public DatabaseBackedAvatarPedestalEntryRepository([JetBrains.Annotations.NotNull] ContentDatabaseContext context) : base(context) { }
public DatabaseBackedGameObjectModelEntryRepository(ContentDatabaseContext databaseContext) : base(databaseContext) { }
public DatabaseBackedWorldTeleporterEntryRepository([JetBrains.Annotations.NotNull] ContentDatabaseContext context) : base(context) { }
/// <inheritdoc /> public DatabaseBackedWorldEntryRepository(ContentDatabaseContext databaseContext) { DatabaseContext = databaseContext ?? throw new ArgumentNullException(nameof(databaseContext)); DefaultRepository = new GeneralGenericCrudRepositoryProvider <long, WorldEntryModel>(databaseContext.Worlds, databaseContext); }
public DatabaseBackedCreatureModelEntryRepository(ContentDatabaseContext databaseContext) : base(databaseContext) { }
/// <inheritdoc /> protected BaseCustomContentRepository(ContentDatabaseContext databaseContext) { DatabaseContext = databaseContext ?? throw new ArgumentNullException(nameof(databaseContext)); DefaultRepository = new GeneralGenericCrudRepositoryProvider <long, TCustomContentModelType>(databaseContext.Set <TCustomContentModelType>(), databaseContext); }