Click or drag to resize

DaoBase.GetDbCount Method (IEntityFields, ITransaction, IPredicate, IRelationCollection, IGroupByCollection, Boolean)

Gets the number of rows returned by a query for the fields specified, using the filter and groupby clause specified.

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
public int GetDbCount(
	IEntityFields fields,
	ITransaction containingTransaction,
	IPredicate filter,
	IRelationCollection relations,
	IGroupByCollection groupByClause,
	bool allowDuplicates
)

Parameters

fields
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityFields
IEntityFields instance with a single field with an expression defined and eventually aggregates
containingTransaction
Type: SD.LLBLGen.Pro.ORMSupportClasses.ITransaction
A containing transaction, if caller is added to a transaction, or null if not.
filter
Type: SD.LLBLGen.Pro.ORMSupportClasses.IPredicate
filter to use
relations
Type: SD.LLBLGen.Pro.ORMSupportClasses.IRelationCollection
The relations to walk
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.
allowDuplicates
Type: System.Boolean
Allow duplicates in the resultset.

Return Value

Type: Int32
the number of rows in the set defined by the query elements passed in

Implements

IDao.GetDbCount(IEntityFields, ITransaction, IPredicate, IRelationCollection, IGroupByCollection, Boolean)
See Also