Click or drag to resize
CqlQueryExtensionsSelectTSource, TResult Method (CqlQueryTSource, ExpressionFuncTSource, TResult)
Projects each element of a sequence into a new form.

Namespace: Dse.Data.Linq
Assembly: Dse (in Dse.dll) Version: 2.3.0
Syntax
C#
public static CqlQuery<TResult> Select<TSource, TResult>(
	this CqlQuery<TSource> source,
	Expression<Func<TSource, TResult>> selector
)

Parameters

source
Type: Dse.Data.LinqCqlQueryTSource
A CqlQuery<TSource> which after execution returns a sequence of values to invoke a transform function on.
selector
Type: System.Linq.ExpressionsExpressionFuncTSource, TResult
A transform function to apply to each element.

Type Parameters

TSource
The type of the elements of source.
TResult
The type of the value returned by selector.

Return Value

Type: CqlQueryTResult
a CqlQuery<TSource> which after execution will return an IEnumerable<TSource> whose elements are the result of invoking the transform function on each element of source. To execute this CqlQuery use Execute() method.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CqlQueryTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also