Back to Devexpress

IXPSimpleObject Interface

xpo-devexpress-dot-xpo-5b4225da.md

latest2.2 KB
Original Source

IXPSimpleObject Interface

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

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public interface IXPSimpleObject :
    IXPClassInfoAndSessionProvider,
    IXPClassInfoProvider,
    IXPDictionaryProvider,
    ISessionProvider,
    IObjectLayerProvider,
    IDataLayerProvider
vb
Public Interface IXPSimpleObject
    Inherits IXPClassInfoAndSessionProvider,
             IXPClassInfoProvider,
             IXPDictionaryProvider,
             ISessionProvider,
             IObjectLayerProvider,
             IDataLayerProvider

Remarks

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.

Note

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

See Also

IXPSimpleObject Members

Create-Read-Update-Delete (CRUD)

Session

DevExpress.Xpo Namespace