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
Public method LongCount() Returns an Int64 that represents the total number of elements in the set.
Public method 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.

See Also

Reference

SqlSet Class
DbExtensions Namespace

© Max Toro Q.