Create, Read, Update and Delete Data

Once you have obtained or created an Object Space instance (as described in the Ways to Implement Business Logic topic), you can use it to create, read, update or delete data. This topic lists common data-aware operations with the corresponding Object Space methods and events.

Data Manipulation

Related IObjectSpace Members

Create a new object

Methods:

IObjectSpace.CreateObject

IObjectSpace.CreateObject<ObjectType>

IObjectSpace.IsNewObject

Get a single object

Methods:

IObjectSpace.FindObject

IObjectSpace.FindObject<ObjectType>

IObjectSpace.GetObject

IObjectSpace.GetObjectByKey

IObjectSpace.GetObjectByKey<ObjectType>

IObjectSpace.GetObjectByHandle

IObjectSpace.IsObjectFitForCriteria

Get a collection

Methods:

IObjectSpace.GetObjects

IObjectSpace.GetObjects<T>

IObjectSpace.CreateDataView

IObjectSpace.CreateServerCollection

IObjectSpace.CreateCollection

IObjectSpace.SetTopReturnedObjectsCount

IObjectSpace.GetObjectsQuery<T>

Count objects

Methods:

IObjectSpace.GetObjectsCount

Save

Methods:

IObjectSpace.CommitChanges

IObjectSpace.IsObjectToSave

IObjectSpace.GetObjectsToSave

Properties:

IObjectSpace.IsCommitting

Events:

IObjectSpace.Committing

IObjectSpace.Committed

IObjectSpace.CustomCommitChanges

IObjectSpace.ObjectSaving

IObjectSpace.ObjectSaved

Delete

Methods:

IObjectSpace.Delete

IObjectSpace.IsObjectToDelete

IObjectSpace.GetObjectsToDelete

Properties:

IObjectSpace.IsDeleting

Events:

IObjectSpace.ObjectDeleting

IObjectSpace.ObjectDeleted

Track modifications

Methods:

IObjectSpace.SetModified

Properties:

IObjectSpace.ModifiedObjects

IObjectSpace.IsModified

Events:

IObjectSpace.ObjectChanged

IObjectSpace.ModifiedChanged

IObjectSpace.ModifiedChanged

Refresh and rollback

Methods:

IObjectSpace.Refresh

IObjectSpace.ReloadObject

IObjectSpace.Rollback

Events:

IObjectSpace.Refreshing

IObjectSpace.Reloaded

IObjectSpace.ObjectReloaded

IObjectSpace.CustomRefresh

IObjectSpace.RollingBack

IObjectSpace.CustomRollBack

For details, refer to the descriptions of these members.

See Also