Skip to main content
A newer version of this page is available. .

PersistentObjectStorage<T> Members

Represents a base class for the storage of persistent objects (appointments and resources).

Properties

Name Description
AutoReload Gets or sets whether persistent object data is automatically fetched from the data source when it is modified.
Count Gets the number of elements contained in a collection.
CustomFieldMappings Gets or sets mappings for custom fields.
DataManager For internal use only.
DataMember Gets or sets the data source member which supplies data to the storage object.
DataSource Gets or sets the object used as the data source to store persistent objects (appointments, resources or appointment dependencies).
Filter Gets or sets a criteria string used to filter storage objects.
FilterCriteria Gets or sets the criteria to filter persistent objects in the storage.
IsDisposed Gets a value indicating whether a storage has been disposed of.
IsLoading Gets whether the storage is being initialized.
IsUpdateLocked Gets whether the storage has been locked for updating.
Item[Int32] Provides indexed access to individual items contained within the storage.
Items Gets the collection of persistent objects within the storage.
Mappings Provides access to object mappings.
ShouldUpdateAfterInsert Gets or sets whether the appointment storage should perform the UPDATE query after INSERT.
Storage Provides access to the Scheduler storage containing the current persistent object storage.
UnboundDataKeeper Creates and holds an internal data table for the unbound mode. For internal use.
UnboundMode Gets a value indicating if the storage is bound to data.

Methods

Name Description
AppendBaseMappings(MappingCollection) Clears previous mappings and appends base mappings.
AppendCustomMappings() Appends PersistentObjectStorage<T>.CustomFieldMappings to the collection of actual mappings. For internal use.
AppendDefaultMappings(MappingCollection) Adds mappings for persistent object properties with field names equal to property names.
AppendMappings(MappingCollection) Adds mappings defined in the storage to the specified mapping collection.
BeginInit() Starts the scheduler storage initialization. Initialization occurs at runtime.
BeginUpdate() Obsolete. Locks the object until the EndUpdate or CancelUpdate method is called.
CancelUpdate() Obsolete. Unlocks the PersistentObjectStorage<T> object after it has been locked by the BeginUpdate method, without causing an immediate visual update.
Clear() Removes all the items from the persistent object storage.
CommitExistingObject(T) Commits changes to an existing object. Updates the object data record in the underlying data source. For internal use.
CommitNewObject(T) Commits a new object. Creates a new object data record and stores it in the underlying data source. For internal use.
CreateCustomFields(T) Creates the custom fields specific to this persistent object and adds them to the object’s custom fields collection.
Dispose() Disposes of the PersistentObjectStorage<T> object.
EndInit() Finalizes the storage initialization.
EndUpdate() Obsolete. Unlocks the PersistentObjectStorage<T> object after a call to the BeginUpdate method and causes an immediate visual update.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetColumnNames() Gets the names of data columns associated with this PersistentObjectStorage<T> object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetObjectRow(T) Returns the data row object that contains information about the specified persistent object.
GetObjectValue(T, String) Returns the value of the specified field in the data row that contains information about the specified persistent object.
GetType() Gets the Type of the current instance. Inherited from Object.
LoadObjects(Boolean) Loads persistent objects from the data source to the storage.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
RaiseReload(Boolean) Raises the internal Reload event. This member supports the internal infrastructure and is not intended to be used directly from your code.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RollbackExistingObject(T) Restores an object to its previous state and cancels uncommitted changes that were made to the object.
SetObjectValue(T, String, Object) Assigns the specified value to a field in the data row that contains information about the specified persistent object.
ToString() Returns a string that represents the current object. Inherited from Object.
ValidateDataSource() Checks mappings for validity.

Events

Name Description
AutoReloading Occurs when persistent object data is automatically fetched from the data source; allows cancelling data loading.
FilterChanged Occurs when the PersistentObjectStorage<T>.Filter property value is changed.
MappingsChanged Occurs when the field name of any object mapping in the storage is changed.
ObjectChanged Occurs when a persistent object in the storage is changed.
ObjectChanging Occurs before a persistent object in the storage is changed and allows you to cancel changes.
ObjectCollectionCleared Occurs when a collection of persistent objects in the storage is cleared.
ObjectCollectionLoaded Occurs when persistent objects are loaded from the data source into the storage.
ObjectDeleted Occurs when a persistent object is deleted from the storage.
ObjectDeleting Occurs before a persistent object is deleted from the storage and allows you to cancel deletion.
ObjectInserted Occurs when a persistent object is inserted into the storage.
ObjectInserting Occurs before a persistent object is inserted into the storage and allows you to cancel insertion.
See Also