SqlSet.LongCount(String, Object[]) Method
Returns an Int64 that represents how many elements in the set satisfy a condition.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Overloads
Name | Description | |
---|---|---|
LongCount() | Returns an Int64 that represents the total number of elements in the set. | |
LongCount(String, Object[]) | Returns an Int64 that represents how many elements in the set satisfy a condition. |
Syntax
public long LongCount(
string predicate,
params Object[] parameters
)
Parameters
predicate String
A SQL expression to test each row for a condition.
parameters Object[]
The parameters to apply to the predicate.
Return Value
Int64
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. |