Appearance
Select Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
columns | Column 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
| Name | Description |
|---|---|
columns | Column 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 => new { x.Id, x.Name }). Only affects selected columns; the materialized type remains T.