C++ C#

Association<D,I,C> Class

Namespace: Semata.DataStore.ObjectModel

A wrapper for Associations of a particular Association Type.

generic <typename D, typename I, typename C>
where D : DataStoreObject<D> where I : ItemObject<D> where C : ICollection<I>, new()
public ref class Association : public Association

Properties

Name Description
Name The Property Name of this AssociationType

Methods

Name Description
Add(I^) Add an association with another Item
GetItem() If the item can be associated with a maximum of one Item with this AssociationType, it can be retrieved directly with this method. An error will be thrown, if there are more than one association. If there is no association, null will be returned
GetItems() Return a collection of items with which this Item is associated
Remove(I^) Remove an association with another Item
SetItem(I^) If the item can be associated with a maximum of one Item with this AssociationType, it can be set directly with this method. An error will be thrown if there are more than one association. If it is set to null any association is removed. If it is set to an item, any existing association is removed, and a new association created.