KeyPropertyAbsentException Class
An exception that is thrown when a persistent object doesn’t have a key.
Namespace: DevExpress.Xpo.Exceptions
Assembly: DevExpress.Xpo.v24.2.dll
Declaration
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).
See Also