Click or drag to resize
DbGetAsyncE Method
An asynchronous version of Get.

Namespace: LiteRepository
Assembly: LiteRepository (in LiteRepository.dll) Version: 2.0.4
Syntax
C#
public virtual Task<IEnumerable<E>> GetAsync<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: TaskIEnumerableE
A task representing the asynchronous operation.
See Also