Skip to content

TQueryLinqExtensions_All_qC3jyb87hYkN+bttkDL0LA

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

TQueryLinqExtensions.All<Table>(DbEcExtended<Table>, Expression<Func<Table,bool>>) Method

Determines whether all records of a TQuery recordset satisfy a condition.

public static DbEasyConnect.DbEcBool<Table> All<Table>(this DbEasyConnect.DbEcExtended<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.DbEcExtended<Table>
An DbEcExtended<T> to apply the predicate to.

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

Returns

DbEasyConnect.DbEcBool<Table>
An DbEcBool<T> instance, which the SQL command will return true if every record of the TQuery recordset passes the test in the specified predicate, or if the recordset is empty; otherwise, false.

Exceptions

System.ArgumentNullException
TQuery or predicate is null.

Clone this wiki locally