Back to Devexpress

ObjectSpaceCreatedEventArgs.ObjectSpace Property

expressappframework-devexpress-dot-expressapp-dot-objectspacecreatedeventargs.md

latest5.6 KB
Original Source

ObjectSpaceCreatedEventArgs.ObjectSpace Property

Gets the Object Space.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public IObjectSpace ObjectSpace { get; }
vb
Public ReadOnly Property ObjectSpace As IObjectSpace

Property Value

TypeDescription
IObjectSpace

An IObjectSpace objects that specifies the Object Space.

|

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.

XAF-CRUD-for-Non-Persistent-Objects-Stored-Remotely/CS/NonPersistentObjectsDemo.Module/NonPersistentObjectSpaceHelper.cs#L28

csharp
private void Application_ObjectSpaceCreated(Object sender, ObjectSpaceCreatedEventArgs e) {
    if(e.ObjectSpace is NonPersistentObjectSpace) {
        NonPersistentObjectSpace npos = (NonPersistentObjectSpace)e.ObjectSpace;

XAF_Non-Persistent-Objects-Filtering-Demo/CS/EFCore/NonPersistentFilteringEF.Module/Module.cs#L37

csharp
private void Application_ObjectSpaceCreated(object sender, ObjectSpaceCreatedEventArgs e) {
    var npos = e.ObjectSpace as NonPersistentObjectSpace;
    if (npos != null) {

XAF_Non-Persistent-Objects-Reloading-Demo/CS/EFCore/NonPersReloadEF/NonPersReloadEF.Module/Module.cs#L39

csharp
private void Application_ObjectSpaceCreated(object sender, ObjectSpaceCreatedEventArgs e) {
    var npos = e.ObjectSpace as NonPersistentObjectSpace;
    if (npos != null) {

XAF_Non-Persistent-Objects-Edit-Linked-Persistent-Objects-Demo/CS/EFCore/NonPersistentEditEF/NonPersistentEditEF.Module/Module.cs#L39

csharp
private void Application_ObjectSpaceCreated(object sender, ObjectSpaceCreatedEventArgs e) {
    var npos = e.ObjectSpace as NonPersistentObjectSpace;
    if(npos != null) {

XAF_Non-Persistent-Objects-Nested-In-Persistent-Objects-Demo/CS/XPO/NonPersistentDemo/NonPersistentDemo.Module/Module.cs#L41

csharp
private void Application_ObjectSpaceCreated(object sender, ObjectSpaceCreatedEventArgs e) {
    var cos = e.ObjectSpace as CompositeObjectSpace;
    if(cos != null) {

XAF-CRUD-for-Non-Persistent-Objects-Stored-Remotely/VB/NonPersistentObjectsDemo.Module/NonPersistentObjectSpaceHelper.vb#L30

vb
Private Sub Application_ObjectSpaceCreated(ByVal sender As Object, ByVal e As ObjectSpaceCreatedEventArgs)
    If TypeOf e.ObjectSpace Is NonPersistentObjectSpace Then
        Dim npos As NonPersistentObjectSpace = CType(e.ObjectSpace, NonPersistentObjectSpace)

XAF_how-to-connect-different-data-models-to-several-databases-within-a-single-application/VB/CommonModule/CommonModule.vb#L40

vb
Private Sub Application_ObjectSpaceCreated(ByVal sender As Object, ByVal e As ObjectSpaceCreatedEventArgs)
    TryCast(e.ObjectSpace, CompositeObjectSpace)?.PopulateAdditionalObjectSpaces(CType(sender, XafApplication))
End Sub

See Also

ObjectSpaceCreatedEventArgs Class

ObjectSpaceCreatedEventArgs Members

DevExpress.ExpressApp Namespace