Method DeferredSingle
DeferredSingle<TSource>(IQueryable<TSource>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<TSource> DeferredSingle<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<TSource> | The single element of the input sequence. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |
DeferredSingle<TSource>(IQueryable<TSource>, Expression<Func<TSource, Boolean>>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<TSource> DeferredSingle<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
where TSource : class
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source | The System.Linq.IQueryable`1 that contains the elements to be counted. |
Expression<Func<TSource, System.Boolean>> | predicate | A function to test an element for a condition. |
Returns
Type | Description |
---|---|
QueryDeferred<TSource> | The single element of the input sequence. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |