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

XPO Classes Comparison

There are four classes from which you can derive your persistent objects. These are: XPBaseObject, XPObject, XPLiteObject and XPCustomObject.

XPOClassHierarchy

Deriving from any class automatically enables various XPO features for your persistent object. For example, when creating a persistent object by deriving from the XPBaseObject, XPCustomObject or XPObject class, an OptimisticLockingAttribute is automatically applied to it. This enables the optimistic locking feature. If your persistent class derives from the XPLiteObject class, the optimistic locking feature is disabled.

The table below shows the difference between the XPO classes.

Class Name Deferred Deletion Optimistic Locking Built-in OID key
XPBaseObject - + -
XPLiteObject - - -
XPCustomObject + + -
XPObject + + +