Click or drag to resize
DbGetScalarAsyncE, T Method
An asynchronous version of GetScalar.

Namespace: LiteRepository
Assembly: LiteRepository (in LiteRepository.dll) Version: 2.0.4
Syntax
C#
public virtual Task<T> GetScalarAsync<E, T>(
	Expression<Func<IEnumerable<E>, T>> expression,
	Expression<Func<E, bool>> where = null,
	Object param = null
)
where E : class

Parameters

expression
Type: System.Linq.ExpressionsExpressionFuncIEnumerableE, T
Scalar expression.
where (Optional)
Type: System.Linq.ExpressionsExpressionFuncE, Boolean
Where expression.
param (Optional)
Type: SystemObject
Query parameters

Type Parameters

E
Type of the entity.
T
Result type.

Return Value

Type: TaskT
A task representing the asynchronous operation.
See Also