-
Notifications
You must be signed in to change notification settings - Fork 0
TQueryLinqExtensions_SingleOrDefault_EYWYBCyZu9DLdR5Ry826_g
Jacob Spitzer edited this page Aug 28, 2022
·
2 revisions
Returning the only record of the TQuery recordset, or NULL if no such record is found, and throws an exception if there is not exactly one record.
public static Table SingleOrDefault<Table>(this DbEasyConnect.DbEcExtended<Table> tQuery);
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.
Table
NULL if TQuery recordset is empty or if no record found; otherwise, the single record in TQuery recordset.