-
Notifications
You must be signed in to change notification settings - Fork 0
TQueryLinqExtensions_FirstOrDefault_ybzFNadl8k+w+xK5Xeskuw
Jacob Spitzer edited this page Aug 28, 2022
·
2 revisions
Executes a single-row query, returning the first record of the TQuery recordset, or NULL if no record is found.
public static Table FirstOrDefault<Table>(this DbEasyConnect.DbEc<Table> tQuery);
Table
The type of the records of table class. need to be a class with the [Table("")] attribute.
tQuery
DbEasyConnect.DbEc<Table>
An DbEc<T>.
Table
NULL if TQuery recordset is empty or if no record is found; otherwise, the first record in TQuery recordset.