KeyPropertyAbsentException Class
An exception that is thrown when a persistent object doesn’t have a key.
Namespace: DevExpress.Xpo.Exceptions
Assembly: DevExpress.Xpo.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
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