DuplicateKeyPropertyException Class
An exception that is thrown when a persistent object has two or more key properties.
Namespace: DevExpress.Xpo.Exceptions
Assembly: DevExpress.Xpo.v24.2.dll
Declaration
Remarks
This exception is thrown whenever a class with multiple key property definitions is used.
Solution:
- declare only one key property in a persistent object;
- for classes derived from the XPObject class do not declare key properties, as the XPObject already contains the XPObject.Oid key property.
See Also