The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PersistentBase Class

Serves as a base for classes that represent persistent objects.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

[NonPersistent]
[MemberDesignTimeVisibility(false)]
[OptimisticLocking(true)]
public class PersistentBase : IXPObject, IXPSimpleObject, IXPClassInfoAndSessionProvider, IXPClassInfoProvider, IXPDictionaryProvider, ISessionProvider, IObjectLayerProvider, IDataLayerProvider, IXPCustomPropertyStore, IXPModificationsStore, IXPInvalidateableObject, IXPReceiveOnChangedFromDelayedProperty, IXPReceiveOnChangedFromArbitrarySource, INotifyPropertyChanged, IXPImmutableHashCode
<NonPersistent>
<MemberDesignTimeVisibility(False)>
<OptimisticLocking(True)>
Public Class PersistentBase
    Implements IXPObject, IXPSimpleObject, IXPClassInfoAndSessionProvider, IXPClassInfoProvider, IXPDictionaryProvider, ISessionProvider, IObjectLayerProvider, IDataLayerProvider, IXPCustomPropertyStore, IXPModificationsStore, IXPInvalidateableObject, IXPReceiveOnChangedFromDelayedProperty, IXPReceiveOnChangedFromArbitrarySource, INotifyPropertyChanged, IXPImmutableHashCode
[NonPersistent]
[MemberDesignTimeVisibility(false)]
[OptimisticLocking(true)]
public class PersistentBase : IXPObject, IXPSimpleObject, IXPClassInfoAndSessionProvider, IXPClassInfoProvider, IXPDictionaryProvider, ISessionProvider, IObjectLayerProvider, IDataLayerProvider, IXPCustomPropertyStore, IXPModificationsStore, IXPInvalidateableObject, IXPReceiveOnChangedFromDelayedProperty, IXPReceiveOnChangedFromArbitrarySource, INotifyPropertyChanged, IXPImmutableHashCode
<NonPersistent>
<MemberDesignTimeVisibility(False)>
<OptimisticLocking(True)>
Public Class PersistentBase
    Implements IXPObject, IXPSimpleObject, IXPClassInfoAndSessionProvider, IXPClassInfoProvider, IXPDictionaryProvider, ISessionProvider, IObjectLayerProvider, IDataLayerProvider, IXPCustomPropertyStore, IXPModificationsStore, IXPInvalidateableObject, IXPReceiveOnChangedFromDelayedProperty, IXPReceiveOnChangedFromArbitrarySource, INotifyPropertyChanged, IXPImmutableHashCode

Remarks

The PersistentBase class provides the basic functionality required by persistent objects. It automatically supports the optimistic concurrency feature. If this feature is not required, you can use the XPLiteObject class instead.

When creating a persistent object by deriving from the PersistentBase, XPBaseObject, XPCustomObject or XPObject class, an OptimisticLockingAttribute is automatically applied to it. This attribute specifies whether a session can lock a persistent object's state (allows optimistic locking to be enabled).

For more information, see XPObject and Optimistic Concurrency.

Inheritance

Object
PersistentBase

Implements

DevExpress.Xpo.Helpers.IXPClassInfoAndSessionProvider
DevExpress.Xpo.Helpers.IXPClassInfoProvider
DevExpress.Xpo.Helpers.IObjectLayerProvider
DevExpress.Xpo.Helpers.IDataLayerProvider
DevExpress.Xpo.Metadata.Helpers.IXPDictionaryProvider
DevExpress.Xpo.IXPCustomPropertyStore
DevExpress.Xpo.IXPInvalidateableObject
DevExpress.Xpo.IXPReceiveOnChangedFromDelayedProperty
DevExpress.Xpo.IXPReceiveOnChangedFromArbitrarySource
DevExpress.Xpo.Helpers.IXPImmutableHashCode
See Also