Save Persistent Objects(保存持久对象)
To save a persistent object use any of the following API:
要保存持久对象,请使用以下任何API:
- the object’s XPBaseObject.Save method - saves the current object.
对象的XPBaseObject.Save方法-保存当前对象。 - the session’s Session.Save method - saves a single or multiple persistent objects.
会话的Session.Save方法-保存单个或多个持久对象。 - UnitOfWork.CommitChanges method - saves all the changes made to the persistent objects, when using the Unit Of Work.
UnitOfWork. WorstChange方法-在使用Unit Of Work时保存对持久对象所做的所有更改。
C#
using(