[This is preliminary documentation and is subject to change.]
Gets a collection of all objects which have associations to this
object.
Declaration Syntax
C# |
public IndexedList<Persistent> GetAssociators()
Return Value
An IndexedList<(Of <(<'T>)>)> containing all associator
objects.
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 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 is slower than the GetAssociators<(Of <<'(T>)>>)()()()() method, as it retrieves each associator object with a separate query.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown if the class of this
object is in a category without the LogAssociations function. |