Skip to content

Select Method ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Overloads ​

NameDescription
QueryBuilder<T> Select(IEnumerable<string> columns)Restricts the query to the specified columns.
QueryBuilder<T> Select(string[] columns)Restricts the query to the specified columns.
QueryBuilder<T> Select(Expression<Func<T, TProj>> selector)Restricts the query to the projected columns from selector.

QueryBuilder<T> Select(IEnumerable<string> columns) ​

csharp
QueryBuilder<T> Select(IEnumerable<string> columns)

Restricts the query to the specified columns.

Parameters ​

NameDescription
columnsColumn names to include in the SELECT list.

Returns ​

A new builder with the specified columns selected.

QueryBuilder<T> Select(string[] columns) ​

csharp
QueryBuilder<T> Select(string[] columns)

Restricts the query to the specified columns.

Parameters ​

NameDescription
columnsColumn names to include in the SELECT list.

Returns ​

A new builder with the specified columns selected.

QueryBuilder<T> Select(Expression<Func<T, TProj>> selector) ​

csharp
QueryBuilder<T> Select(Expression<Func<T, TProj>> selector)

Restricts the query to the projected columns from selector.

Returns ​

A new builder restricted to the selected columns.

Remarks ​

Supports anonymous projections such as: q.Select(x =&gt; new { x.Id, x.Name }). Only affects selected columns; the materialized type remains T.