Session.GetObjectsByKey(ObjectsByKeyQuery[], Boolean) Method
Returns reloaded persistent objects from a data store, using queries based on specified object types and key values.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public ICollection[] GetObjectsByKey(
ObjectsByKeyQuery[] queries,
bool alwaysGetFromDataStore
)
#Parameters
Name | Type | Description |
---|---|---|
queries | Objects |
An array of Objects |
always |
Boolean | true to reload persistent objects from storage if they are found in memory; otherwise, false. |
#Returns
Type | Description |
---|---|
ICollection[] | An array of persistent object collections retrieved for query data passed as the queries parameter. |
#Remarks
Firstly, the GetObjectsByKey method searches in memory for persistent objects with specified values of the key property. If such objects are found, they are not reloaded. To get the up-to-date objects from storage, the alwaysGetFromDb parameter must be set to true.
Note
The Get