Skip to main content
A newer version of this page is available. .

BaseObject Class

Represents one of the base persistent classes from which business classes can be inherited.

Namespace: DevExpress.Persistent.BaseImpl

Assembly: DevExpress.Persistent.BaseImpl.v18.1.dll

Declaration

[NonPersistent]
public abstract class BaseObject :
    XPCustomObject

Remarks

The BaseObject class is a feature-rich persistent base class. When declaring business classes using the XPO Business Object template, the BaseObject class is used as the base class. The following are the main features of the BaseObject class:

  • Contains a Guid-type auto-generated BaseObject.Oid primary key property;
  • Supports optimistic concurrency control;
  • Supports deferred deletion.

Business classes are inherited from one of the base persistent classes. For an overview of base persistent classes, refer to the Base Persistent Classes help topic. To learn how to declare a business class, refer to the Ways to Add a Business Class topic. To learn how to implement a custom base persistent class, refer to the How to: Implement a Custom Base Persistent Class help topic. For a general overview of the business class concept, refer to the Business Classes vs Database Tables topic.

Note

XAF manages persistent objects via Object Spaces. To learn about the Object Space concept, refer to the BaseObjectSpace class description.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BaseObject class.

Note

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