Skip to content

TQueryLinqExtensions_Where_FnaznADf1DajZqmPeCp_YA

Jacob Spitzer edited this page Aug 28, 2022 · 2 revisions

TQueryLinqExtensions.Where<Table>(DbEc<Table>, Expression<Func<Table,bool>>) Method

Filters a TQuery recordset based on a predicate.

public static DbEasyConnect.DbEc<Table> Where<Table>(this DbEasyConnect.DbEc<Table> tQuery, System.Linq.Expressions.Expression<System.Func<Table,bool>> predicate);

Type parameters

Table
The type of the records of table class. need to be a class with the [Table("")] attribute.

Parameters

tQuery DbEasyConnect.DbEc<Table>
An DbEc<T> that contains the queryable table to apply the predicate to.

predicate System.Linq.Expressions.Expression<System.Func<Table,System.Boolean>>
A function to test each element for a condition.

Returns

DbEasyConnect.DbEc<Table>
An DbEc<T> that contains records from the input sequence that satisfy the condition specified by predicate.

Clone this wiki locally