IDaoGetScalar Method (IEntityFields, ITransaction, IPredicate, IRelationCollection, IGroupByCollection, Boolean) |
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.10.0.0 (5.10.0)
Syntax Object GetScalar(
IEntityFields fields,
ITransaction containingTransaction,
IPredicate filter,
IRelationCollection relations,
IGroupByCollection groupByClause,
bool allowDuplicates
)
Function GetScalar (
fields As IEntityFields,
containingTransaction As ITransaction,
filter As IPredicate,
relations As IRelationCollection,
groupByClause As IGroupByCollection,
allowDuplicates As Boolean
) As Object
Parameters
- fields
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFields
IEntityFields instance with a single field with an expression defined and eventually aggregates - containingTransaction
- Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
A containing transaction, if caller is added to a transaction, or null if not. - filter
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
filter to use - relations
- Type: SD.LLBLGen.Pro.ORMSupportClassesIRelationCollection
The relations to walk - groupByClause
- Type: SD.LLBLGen.Pro.ORMSupportClassesIGroupByCollection
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. - allowDuplicates
- Type: SystemBoolean
Allow duplicates in the resultset.
Return Value
Type:
Object
the value which is the result of the expression defined on the specified field
See Also