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

Adding Persistence to an Existing Hierarchy

  • 2 min to read

The simplest way to persist an object is to inherit it from the XPObject class (see Creating a Persistent Object). Alternatively, an object can be inherited from the XPBaseObject class. However, this variant requires the implementation of an identity (key) field. Inheriting an object from the aforementioned classes simplifies things, but it's sometimes necessary to persist an object with a different base. In this instance there are two possible options to choose from: