Click or drag to resize

IEntityCollectionGetDbCount Method (IPredicate, IRelationCollection)

Gets the amount of Entity objects in the database, when taking into account the filter specified and the relations specified.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
int GetDbCount(
	IPredicate filter,
	IRelationCollection relations
)

Parameters

filter
Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
the filter to apply
relations
Type: SD.LLBLGen.Pro.ORMSupportClassesIRelationCollection
The relations to walk

Return Value

Type: Int32
the amount of objects found
See Also