Method DeferredCount
DeferredCount<TSource>(IQueryable<TSource>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<int> DeferredCount<TSource>(this IQueryable<TSource> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source | The System.Linq.IQueryable`1 that contains the elements to be counted. |
Returns
Type | Description |
---|---|
QueryDeferred<System.Int32> | The number of elements in the input sequence. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |
DeferredCount<TSource>(IQueryable<TSource>, Expression<Func<TSource, Boolean>>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<int> DeferredCount<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.Int32> | The number of elements in the sequence that satisfies the condition in the predicate function. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |