Namespace: Semata.DataStore.ObjectModel
Class: Association<I>
Returns an ItemObjectCollection that allows the items with which this Item is associated to be iterated through and items to be added and removed from this association
public ItemObjectCollection<I> GetItemObjectCollection(bool addNew, bool add, bool remove, bool deleteOnRemove)
Parameters
Type | Name | Description |
bool | addNew | If true ItemObjectCollection.AddNewItemObject() will create a new ItemObject using call to creator(), and then add it to the Assocation |
bool | add | If true ItemObjectCollection.AddItemObject() will add the passed ItemObject to the Assocation |
bool | remove | If true ItemObjectCollection.RemoveItemObject() will remove the passed ItemObject from the Assocation |
bool | deleteOnRemove | If true, and remove is true, ItemObjectCollection.RemoveItemObject() will delete the passed ItemObject from the Association, and delete it. |
Returns: ItemObjectCollection<I>