The IBaseRelations<(Of <(<'TOwner, TTarget>)>)> type exposes the following members.

Methods

  NameDescription
Public methodAddRelation
Add a relation entry to the collection. If the collection is not editable, exception will be thrown. If the target unique ID already exists in the keys collection, exception will be thrown. It will also fire the "TargetAdded" event if successful
Public methodConvert<(Of <<'(TNewOwner, TNewTarget>)>>)
Casting operation, convert both owner and target objects to a differnt types. If casting of the owner or targets to new types are not successful, exception will be thrown
Public methodConvertOwner<(Of <<'(TNewOwner>)>>)
Casting operation, convert the owner object to a differnt type. If casting of the owner to new type is not successful, exception will be thrown
Public methodConvertTarget<(Of <<'(TNewTarget>)>>)
Casting operation, convert the target objects to a differnt type. If casting of the targets to new type are not successful, exception will be thrown
Public methodRemoveRelation
Remove a target off the relation. If collection is not editable, exception will be thrown. Target doesn't exist will not cause any exceptions. It will fire the "TargetRemoved" event is removal is successful.
Public methodSetupDelegates
Setup the data procedure delegates for insert and removal of targets

Properties

  NameDescription
Public propertyCollectionOwner
Get the owner of the collection
Public propertyEditable
Get the information is the collection editable. Non-Editable relations will throw exception, when AddRelation and RemoveRelation methods are called.
Public propertyManager
Get the manager of current object type. e.g. Folio object will return IFolioManager type, cast down to ICartellaObjectManager
Public propertySiteManager
Get the Site Manager of current instance. This site manager is the one created all the object manager instances
Public propertyTargetType
Get the object type definition of the target

Events

  NameDescription
Public eventTargetAdded
Event to fire, when a target is added to the collection
Public eventTargetRemoved
Event to fire, when a target is removed from the collection

See Also