Click or drag to resize

EntityCollectionBaseTEntityGetDbCount 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.5.0.0 (5.5.18.1019)
Syntax
public 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