Method SelectKeys
- Namespace
- Scaleout.Client.QuerySupport
- Assembly
- Scaleout.Client.dll
SelectKeys<TKey, TValue>(IQueryable<TValue>, Cache<TKey, TValue>)
Returns the keys corresponding to the possibly filtered source.
public static IEnumerable<TKey> SelectKeys<TKey, TValue>(this IQueryable<TValue> source, Cache<TKey, TValue> cache)
Parameters
sourceIQueryable<TValue>the input IQueryable<T> which may be a filtering expression
cacheCache<TKey, TValue>the Cache<TKey, TValue> from which the values are filtered.
cacheis specified so that .net can infer the type parameters,TKeyandTValuewithout explicit generic type specification.
Returns
- IEnumerable<TKey>
an enumeration of the keys corresponding to the possibly filtered values in
source.
Type Parameters
TKeythe element type of the keys used with
cacheTValuethe element type of the values uses with
cache