-
Notifications
You must be signed in to change notification settings - Fork 0
TQueryLinqExtensions_Any_BYOpoBV9TOaKOsVDYLQKOw
Jacob Spitzer edited this page Aug 28, 2022
·
2 revisions
Determines whether any record of a TQuery recordset satisfy a condition.
public static DbEasyConnect.DbEcBool<Table> Any<Table>(this DbEasyConnect.DbEcExtended<Table> tQuery, System.Linq.Expressions.Expression<System.Func<Table,bool>> predicate);
Table
The type of the records of table class. need to be a class with the [Table("")] attribute.
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.
DbEasyConnect.DbEcBool<Table>
An DbEcBool<T> instance, which the SQL command will return true if the TQuery recordset is not empty and at least one of its records passes
the test in the specified predicate; otherwise, false.
System.ArgumentNullException
TQuery or predicate is null.