EntityRepositoryGetObjectsByKeys Method |
Find or loads objects with the specified repository-specific keys.
The objects are eagerly mass loaded.
Namespace:
Aloe.SystemFrameworks.Domain
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic IEnumerable<EntityObject> GetObjectsByKeys(
ObjectTransaction transaction,
IEnumerable<Guid> keys,
bool includeDeletedRows = false
)
Public Function GetObjectsByKeys (
transaction As ObjectTransaction,
keys As IEnumerable(Of Guid),
Optional includeDeletedRows As Boolean = false
) As IEnumerable(Of EntityObject)
public:
IEnumerable<EntityObject^>^ GetObjectsByKeys(
ObjectTransaction^ transaction,
IEnumerable<Guid^>^ keys,
bool includeDeletedRows = false
)
member GetObjectsByKeys :
transaction : ObjectTransaction *
keys : IEnumerable<Guid> *
?includeDeletedRows : bool
(* Defaults:
let _includeDeletedRows = defaultArg includeDeletedRows false
*)
-> IEnumerable<EntityObject>
Parameters
- transaction
- Type: Aloe.SystemFrameworks.DomainObjectTransaction
The transaction to contain the objects. - keys
- Type: System.Collections.GenericIEnumerableGuid
The repository-specific keys of the objects. - includeDeletedRows (Optional)
- Type: SystemBoolean
if set to true the search includes deleted rows.
Return Value
Type:
IEnumerableEntityObject
The objects with the specified keys.
Remarks
The repository specific key might be different from the primary object Id.
For the most derived repository types, it is usually the same.
But for base classes, the repository specific key is different and identifies the object among all
objects from the repository and all descendant repository classes.
See Also