-
Notifications
You must be signed in to change notification settings - Fork 0
TQueryCrudExtensions_Find_VtWpRU4u9f4BU4FQdsMGSQ
Jacob Spitzer edited this page Aug 28, 2022
·
2 revisions
Returns a single entity by a single id from table. Id must be marked with [Key] attribute.
public static Table Find<Table>(this DbEasyConnect.DbEc<Table> tQuery, long id, string keyColumnName="Id");
tQuery
DbEasyConnect.DbEc<Table>
An DbEc<T>.
id
System.Int64
Id of the entity to get, must be marked with [Key] attribute
keyColumnName
System.String
The column name of the primary key.
Table
The record in TQuery recordset with the given id, or NULL if id not found.