Exemple #1
0
 public virtual TEntity Single(Expression <Func <TEntity, bool> > predicate)
 {
     return(SelectedSetWithIncludes.SingleOrDefault(predicate));
 }
Exemple #2
0
 /// <summary>
 /// Get entity by Id
 /// </summary>
 /// <param name="id">Identify key of entity</param>
 /// <returns>TEntity</returns>
 public virtual TEntity GetById(int id)
 {
     return(SelectedSetWithIncludes.SingleOrDefault(x => x.Id == id));
 }