Click or drag to resize

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
Syntax
public IEnumerable<EntityObject> GetObjectsByKeys(
	ObjectTransaction transaction,
	IEnumerable<Guid> keys,
	bool includeDeletedRows = false
)

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