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