Skip to content

TQueryLinqExtensions_Single_8WHRtUF1x7LyK+WWfm3AYA

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

TQueryLinqExtensions.Single<Table>(DbEc<Table>) Method

Returning the only record of the TQuery recordset, and throws an exception if there is not exactly one record.

public static Table Single<Table>(this DbEasyConnect.DbEc<Table> tQuery);

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> to apply the predicate to.

Returns

Table
The single record in the TQuery recordset.

Clone this wiki locally