Skip to main content
.NET 8.0+

IObjectLayer.GetObjectsByKey(Session, ObjectsByKeyQuery[]) Method

When implemented by a class, returns persistent objects from a specified session using queries based on specified object types and key values.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.2.dll

Declaration

ICollection[] GetObjectsByKey(
    Session session,
    ObjectsByKeyQuery[] queries
)

Parameters

Name Type Description
session Session

A Session that is used to retrieve persistent objects.

queries ObjectsByKeyQuery[]

An array of ObjectsByKeyQuery objects, containing data for queries that retrieve persistent objects by specified object types and key values.

Returns

Type Description
ICollection[]

An array of persistent object collections retrieved for query data passed as the queries parameter.

See Also