public virtual TEntity Single(Expression <Func <TEntity, bool> > predicate) { return(SelectedSetWithIncludes.SingleOrDefault(predicate)); }
/// <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)); }