Back to Devexpress

Session.ObjectLayer Property

xpo-devexpress-dot-xpo-dot-session-ccfb80b2.md

latest2.2 KB
Original Source

Session.ObjectLayer Property

Provides access to an object access layer, which the current session uses to retrieve and update object data in a data store.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
[Browsable(false)]
public IObjectLayer ObjectLayer { get; }
vb
<Browsable(False)>
Public ReadOnly Property ObjectLayer As IObjectLayer

Property Value

TypeDescription
IObjectLayer

An object that implements the IObjectLayer interface.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ObjectLayer 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_generate-a-sequential-number-for-a-persistent-object-within-a-database-transaction/CS/XPO/SequenceGenerator/SequenceGenerator.Module/SequenceClasses/UserFriendlyIdPersistentObject.cs#L31

csharp
&& (Session.DataLayer != null)
    && (Session.ObjectLayer is SimpleObjectLayer)
    //OR

See Also

Session Class

Session Members

DevExpress.Xpo Namespace