Click or drag to resize
DbGetScalarE, T Method
Returns a scalar expression.

Namespace: LiteRepository
Assembly: LiteRepository (in LiteRepository.dll) Version: 2.0.4
Syntax
C#
public virtual T GetScalar<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: T
The result of execution a scalar query.
See Also