Persistate API documentation
GetAssociators<(Of <(<'T>)>)> Method
NamespacesPersistatePersistentGetAssociators<(Of <<'(T>)>>)()()()()

[This is preliminary documentation and is subject to change.]

Gets a collection of all objects of a particular type which have associations to this object.
Declaration Syntax
C#
public IndexedList<T> GetAssociators<T>()
where T : Persistent
Generic Template Parameters
T
The type of associators to retrieve.
Return Value
An IndexedList of the appropriate constructed type containing the found associators.
Remarks

In order for this to work, the ObjectClass of this object must be in a ClassCategory which has the Log Associations function set.

The returned collection will contain all objects of the appropriate type which have set this object into either an associated single member, or an associated collection member. It will NOT contain the parent object of this object, unless that parent also has an association to this object. Note that this method involves only a single indexed lookup in persistent storage, as Persistate keeps track of all associations made.

Exceptions
ExceptionCondition
InvalidOperationExceptionThrown if the class of this object is in a category without the LogAssociations function.

Assembly: Persistate (Module: Persistate) Version: 0.6.1.20 (0.6.1.20)