Click or drag to resize

DataAccessAdapterCore.GetScalar Method (IEntityFields2, IPredicate, IGroupByCollection, IRelationCollection)

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:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax
public virtual Object GetScalar(
	IEntityFields2 fields,
	IPredicate filter,
	IGroupByCollection groupByClause,
	IRelationCollection relations
)

Parameters

fields
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityFields2
IEntityFields2 instance with a single field with an expression defined and eventually aggregates
filter
Type: SD.LLBLGen.Pro.ORMSupportClasses.IPredicate
filter to use
groupByClause
Type: SD.LLBLGen.Pro.ORMSupportClasses.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: SD.LLBLGen.Pro.ORMSupportClasses.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

Implements

IDataAccessAdapter.GetScalar(IEntityFields2, IPredicate, IGroupByCollection, IRelationCollection)
See Also