public override IEnumerable <Comment> Find(Func <Comment, bool> predicate) { return(_db.Set <Comment>().Include(_ => _.Game).Where(predicate).ToList()); }
public override IEnumerable <Game> Get() { return (_gameStoreDb.Set <Game>() .Include(_ => _.Genres) .Include(_ => _.PlatformTypes) .Include(_ => _.Comments) .Include(_ => _.Publisher) .Where(_ => _.IsDeleted == false) .ToList()); }
public virtual IEnumerable <TEntity> Get() { return(_gameStoreDb.Set <TEntity>().ToList()); }
public void Create(T item) { _database.Set <T>().Add(item); }