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

IXPSimpleObject Interface

The interface that provides the basic functionality required by persistent objects.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.1.dll


public interface IXPSimpleObject :


To make any object persistent (so that it can be stored to/restored from a data store) you can implement the IXPSimpleObject interface for a custom object. You can also implement the IXPObject interface instead, if you need to have more control over the object’s lifetime.

The base class that implements the IXPObject interface is XPBaseObject. So, rather than implementing the IXPSimpleObject or IXPObject interface for a custom object, you can inherit it from the XPBaseObject class, or one of its descendants.

It’s also possible to make any object persistent, by using the PersistentAttribute attribute.


When implementing the IXPSimpleObject interface, it is recommended that you implement a constructor that takes a Session parameter.

The following code snippets (auto-collected from DevExpress Examples) contain references to the IXPSimpleObject interface.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also