Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

XPBaseObject Class

Serves as a base for classes that represent persistent objects.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

[NonPersistent]
[MemberDesignTimeVisibility(false)]
[OptimisticLocking(true)]
public abstract class XPBaseObject :
    PersistentBase,
    IEditableObject,
    ICustomTypeDescriptor,
    IComparable,
    IXPReceiveOnChangedFromXPPropertyDescriptor

Remarks

The XPBaseObject class 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 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.

Note

XPO classes can’t be used as design-time Data Sources in VS 2005 since the base XPBaseObject class implements the System.ComponentModel.ICustomTypeDescriptor interface to provide dynamic type information. You should use, for example, the XPCollection or XPView as a data source for editors and grids.

See Also