Gets a scalar value, calculated with the aggregate and expression specified. the field specified is the field the expression and aggregate are applied on.

Namespace: MonoSoftware.LLBLGen
Assembly: MonoSoftware.LLBLGen (in MonoSoftware.LLBLGen.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public Object GetScalar(
	IEntityField2 field,
	IExpression expressionToExecute,
	AggregateFunction aggregateToApply,
	IPredicate filter,
	IGroupByCollection groupByClause
)
Visual Basic
Public Function GetScalar ( 
	field As IEntityField2,
	expressionToExecute As IExpression,
	aggregateToApply As AggregateFunction,
	filter As IPredicate,
	groupByClause As IGroupByCollection
) As Object
Visual C++
public:
virtual Object^ GetScalar(
	IEntityField2^ field, 
	IExpression^ expressionToExecute, 
	AggregateFunction aggregateToApply, 
	IPredicate^ filter, 
	IGroupByCollection^ groupByClause
) sealed
F#
abstract GetScalar : 
        field : IEntityField2 * 
        expressionToExecute : IExpression * 
        aggregateToApply : AggregateFunction * 
        filter : IPredicate * 
        groupByClause : IGroupByCollection -> Object 
override GetScalar : 
        field : IEntityField2 * 
        expressionToExecute : IExpression * 
        aggregateToApply : AggregateFunction * 
        filter : IPredicate * 
        groupByClause : IGroupByCollection -> Object 

Parameters

field
Type: IEntityField2
Field to which to apply the aggregate function and expression
expressionToExecute
Type: IExpression
The expression to execute. Can be null
aggregateToApply
Type: AggregateFunction
Aggregate function to apply.
filter
Type: IPredicate
The filter to apply to retrieve the scalar
groupByClause
Type: IGroupByCollection
The groupby clause to apply to retrieve the scalar

Return Value

Type: Object
the scalar value requested

Implements

IRepository..::..GetScalar(IEntityField2, IExpression, AggregateFunction, IPredicate, IGroupByCollection)

See Also