Table of Contents

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

source IQueryable<TValue>

the input IQueryable<T> which may be a filtering expression

cache Cache<TKey, TValue>

the Cache<TKey, TValue> from which the values are filtered. cache is specified so that .net can infer the type parameters, TKey and TValue without explicit generic type specification.

Returns

IEnumerable<TKey>

an enumeration of the keys corresponding to the possibly filtered values in source.

Type Parameters

TKey

the element type of the keys used with cache

TValue

the element type of the values uses with cache