Executes the expression defined with the field in the fields collection specified, using the various elements defined. The expression is executed as a scalar query and a single value is returned.

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

Syntax

C#
Object GetScalar(
	IEntityFields2 fields,
	IPredicate filter,
	IGroupByCollection groupByClause,
	IRelationCollection relations
)
Visual Basic
Function GetScalar ( 
	fields As IEntityFields2,
	filter As IPredicate,
	groupByClause As IGroupByCollection,
	relations As IRelationCollection
) As Object
Visual C++
Object^ GetScalar(
	IEntityFields2^ fields, 
	IPredicate^ filter, 
	IGroupByCollection^ groupByClause, 
	IRelationCollection^ relations
)
F#
abstract GetScalar : 
        fields : IEntityFields2 * 
        filter : IPredicate * 
        groupByClause : IGroupByCollection * 
        relations : IRelationCollection -> Object 

Parameters

fields
Type: IEntityFields2
IEntityFields2 instance with a single field with an expression defined and eventually aggregates
filter
Type: IPredicate
filter to use
groupByClause
Type: IGroupByCollection
The list of fields to group by on. When not specified or an empty collection is specified, no group by clause is added to the query. A check is performed for each field in the selectList. If a field in the selectList is not present in the groupByClause collection, an exception is thrown.
relations
Type: IRelationCollection
The relations part of the filter.

Return Value

Type: Object
the value which is the result of the expression defined on the specified field

See Also