Skip to content

TQueryCrudExtensions_Find_E+jZAnYohMBLaRnVAeMysQ

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

TQueryCrudExtensions.Find<Table>(DbEc<Table>, long[], string) Method

Returns a list of entities from table by a list of given ids. Id must be marked with [Key] attribute.

public static System.Collections.Generic.IEnumerable<Table> Find<Table>(this DbEasyConnect.DbEc<Table> tQuery, long[] ids, string keyColumnName="Id");

Type parameters

Table

Parameters

tQuery DbEasyConnect.DbEc<Table>
An DbEc<T>.

ids System.Int64[]
Id of the entity to get, must be marked with [Key] attribute

keyColumnName System.String
The column name of the primary key.

Returns

System.Collections.Generic.IEnumerable<Table>
The records in TQuery recordset with the given ids, or NULL if no id was found.

Clone this wiki locally