Click or drag to resize

IUserSessionGetEntitiesT, TManager Method


Retrieves from the content store by unique ID a collection of entities that implements the IEntityTManager interface.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
IEnumerable<T> GetEntities<T, TManager>(
	string[] ids,
	TManager manager
)
where T : new(), Entity<TManager>
where TManager : ITransactionalEntity

Parameters

ids  String
Unique IDs of the entities to retrieve
manager  TManager
The manager that retrieves the entities

Type Parameters

T
Type of the entity to retrieve, Must be non-abstract type that implements the IEntityTManager interface.
TManager
The entity's manager type, which must implement ITransactionalEntity.

Return Value

IEnumerableT
Returns collection of objects in the order of the provided IDs. Skips non-existing entities and entities that don't match the given entity/manager type.
See Also