DomainObjects Class Library

Query.GetCount Method

Returns the total number of rows matching the given criteria, including duplicates and null values. Translates to a

COUNT(*)
query in SQL.

Overload List

Returns the total number of rows matching the given criteria, including duplicates and null values. Translates to a

COUNT(*)
query in SQL.

public static int GetCount<ClassToFind>(Criteria); where ClassToFind: PersistableObject

Returns the number of rows where the given field evaluates to a non-null field. Translates to a COUNT([DISTINCT] field) query in SQL.

public static int GetCount<ClassToFind>(Criteria,Field,Boolean); where ClassToFind: PersistableObject

See Also

Query Class | DomainObjects.Facade.Command Namespace