Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Collapse]eXpressApp Framework
 [Expand]Fundamentals
 [Expand]Getting Started
 [Collapse]Concepts
  [Expand]Application Solution Components
  [Expand]Business Model Design
  [Expand]Application Model
  [Expand]UI Construction
  [Expand]Extend Functionality
  [Collapse]Data Manipulation and Business Logic
    Object Space
    Ways to Implement Business Logic
    Create, Read, Update and Delete Data
    Access XAF Application Data in a non-XAF Application
  [Expand]Security System
  [Expand]Localization
  [Expand]System Module
  [Expand]Extra Modules
  [Expand]Debugging and Error Handling
  [Expand]Filtering
  [Expand]Application Life Cycle
 [Expand]Design-Time Features
 [Expand]Functional Testing
 [Expand]Deployment
 [Expand]Task-Based Help
 [Expand]Frequently Asked Questions
 [Expand]API Reference
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
[Expand]End-User Documentation

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.

Expanded See Also

How would you rate this topic?​​​​​​​