Click or drag to resize
DbGetE Method
Returns a collection of entities which meet a where condition.

Namespace: LiteRepository
Assembly: LiteRepository (in LiteRepository.dll) Version: 2.0.4
Syntax
C#
public virtual IEnumerable<E> Get<E>(
	Type type = null,
	Expression<Func<E, bool>> where = null,
	Object param = null,
	Expression<Func<IEnumerable<E>, IEnumerable<E>>> orderBy = null
)
where E : class

Parameters

type (Optional)
Type: SystemType
Type which sets a subsets of the fields to retrive.
where (Optional)
Type: System.Linq.ExpressionsExpressionFuncE, Boolean
Where expression.
param (Optional)
Type: SystemObject
Query parameters
orderBy (Optional)
Type: System.Linq.ExpressionsExpressionFuncIEnumerableE, IEnumerableE
Sort expression.

Type Parameters

E
Type of the entity.

Return Value

Type: IEnumerableE
A collection of entities from database. Empty collection if no items was found.
See Also