C++ C#

Items<D,I,C> Class

Namespace: Semata.DataStore.ObjectModel

The Items class allows items to be created and retrieved.

public class Items<D,I,C> where D : DataStoreObject<D> where I : ItemObject<D> where C : ICollection<I>, new()

Methods

Name Description
Create() Creates and returns an ItemObject of this type. The Item in the the underlying DataStore is only created when the ItemObject is written.
GetItemById(ItemId) Retrieve an item by its unique internal id.
GetItems() Returns a collection containing every Item of this type.
GetItemsByPrefix(string, string) Returns a collection containing every Item of this type. Where an string attribute has a value that begins with a given prefix
GetItemsByValue(string, object) Returns a collection containing every Item of this type. Where an attribute has a given value
GetItemsByValueRange(string, object, object) Returns a collection containing every Item of this type. Where an attribute has a value within a given range