CompositeView.ObjectSpace Property
The current View’s Object Space.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v25.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
| Type | Description |
|---|---|
| IObjectSpace | An IObjectSpace object representing the current View’s Object Space. |
Remarks
An Object Space (see BaseObjectSpace) is an instrument that allows you to manage a cache with persistent objects that are currently used in a View. Use the Object Space to retrieve a particular object set from the database, make changes to objects within this data set, or cancel changes. This does not influence the general database.
Note
Do not use a root View’s Object Space for the creation of another root View in it. Instead, create a new Object Space using the XafApplication.CreateObjectSpace method for the new root View.
Note
The ObjectSpace property is not supposed to be used when a large amount of data is processed, created, or deleted. Instead, use an independent Object Space that is not used by a View. Such an Object Space can be instantiated using the XafApplication.CreateObjectSpace method.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ObjectSpace property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.