SqlSet.Count Method (String, Object[])

Returns a number that represents how many elements in the set satisfy a condition.

Namespace:  DbExtensions
Assembly: DbExtensions.dll

Syntax

public int Count(
	string predicate,
	params Object[] parameters
)

Parameters

predicate

Type: System.String
A SQL expression to test each row for a condition.

parameters

Type: System.Object[]
The parameters to apply to the predicate.

Return Value

Type: Int32
A number that represents how many elements in the set satisfy the condition in the predicate.

Exceptions

Exception Condition
OverflowException The number of matching elements exceeds MaxValue.

See Also

Reference

SqlSet Class
DbExtensions Namespace

© Max Toro Q.