C++ C#

ItemObject<D> Class

Namespace: Semata.DataStore.ObjectModel

A wrapper for an Item. Classes generated for Items inherit from this class. Classes generated for Items have a property for each of their Attributes and Associations that returns a class that wraps that Attribute or Association. Changes to attributes are cached until the Write method is invoked.

public abstract class ItemObject<D> : INotifyPropertyChanged where D : DataStoreObject<D>

Properties

Name Description
IsChanged Are there any changes to attributes that have not been written to the DataStore
IsNew Are there any changes to attributes that have not been written to the DataStore

Methods

Name Description
CancelEdits() Cancel changes to Attributes that have not been written to DataStore
Delete() Delete the Item from the DataStore
Write() If it is a new Item create the Item, and write any changed Attributes to the DataStore.