Method DeferredLongCount
DeferredLongCount<TSource>(IQueryable<TSource>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<long> DeferredLongCount<TSource>(this IQueryable<TSource> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source | An System.Linq.IQueryable`1 that contains the elements to be counted. |
Returns
Type | Description |
---|---|
QueryDeferred<System.Int64> | The number of elements in source. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |
DeferredLongCount<TSource>(IQueryable<TSource>, Expression<Func<TSource, Boolean>>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<long> DeferredLongCount<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source | An System.Linq.IQueryable`1 that contains the elements to be counted. |
Expression<Func<TSource, System.Boolean>> | predicate | A function to test each element for a condition. |
Returns
Type | Description |
---|---|
QueryDeferred<System.Int64> | The number of elements in source that satisfy the condition in the predicate function. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |