现在的位置: 首页 > 综合 > 正文

XPO Classes Comparison

2012年09月12日 ⁄ 综合 ⁄ 共 846字 ⁄ 字号 评论关闭
XPO Classes Comparison

 

There are four classes from which you can derive your persistent objects. These are: XPBaseObjectXPObjectXPLiteObject and XPCustomObject.

Deriving from any class automatically enables various XPO features for your persistent object. For example, when creating a persistent object by deriving from the XPBaseObjectXPCustomObject 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 + + +

 

 http://documentation.devexpress.com/#XPO/CustomDocument3311

抱歉!评论已关闭.