CqlQueryExtensions.Select<TSource, TResult> Method |
Projects each element of a sequence into a new form.
Namespace: Cassandra.Data.LinqAssembly: Cassandra (in Cassandra.dll) Version: 3.1.0
Syntaxpublic static CqlQuery<TResult> Select<TSource, TResult>(
this CqlQuery<TSource> source,
Expression<Func<TSource, TResult>> selector
)
Parameters
- source
- Type: Cassandra.Data.Linq.CqlQuery<TSource>
A CqlQuery<TSource> which after execution returns a sequence of values to invoke a transform function on. - selector
- Type: System.Linq.Expressions.Expression<Func<TSource, 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:
CqlQuery<TResult>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
CqlQuery<TSource>. 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