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

KeyPropertyAbsentException Class

An exception that is thrown when a persistent object doesn’t have a key.

Namespace: DevExpress.Xpo.Exceptions

Assembly: DevExpress.Xpo.v18.2.dll

Declaration

public class KeyPropertyAbsentException :
    Exception

Remarks

Each object must have a key property. This exception is thrown if an object doesn’t have a key.

Solution:

- add a key field to the object (by deriving the object class from the XPObject class or by declaring a property with the KeyAttribute attribute).

Inheritance

Object
Exception
KeyPropertyAbsentException
See Also