-
Notifications
You must be signed in to change notification settings - Fork 0
TQueryLinqExtensions_Select_0OM3HOS2TRCE1DWi0ZTbnA
TQueryLinqExtensions.Select<Table,TResult>(DbEcOrder<Table>, Expression<Func<Table,TResult>>) Method
Projects the TQuery recordset into a new form of a result table by selecting specific columns or calculations to retrieve from the table.
public static DbEasyConnect.DbEcSelect<Table> Select<Table,TResult>(this DbEasyConnect.DbEcOrder<Table> tQuery, System.Linq.Expressions.Expression<System.Func<Table,TResult>> selector);
Table
The type of the records of table class. need to be a class with the [Table("")] attribute.
TResult
The new form type of the fields and calculations returned by selector.
tQuery
DbEasyConnect.DbEcOrder<Table>
An DbEcOrder<T> that contains an ordered queryable table to retrieve the new result type.
selector
System.Linq.Expressions.Expression<System.Func<Table,TResult>>
An selection of the columns or calculations to be retrieved from the TQuery recordset.
Example: tQuery.(x=> new { FullName = x.FirstName + x.LastName, Id = x.Id, AfterTax = x.Total * 1.15 });
DbEasyConnect.DbEcSelect<Table>
An DbEcSelect<T> whose records are projected into a new form of a record result.