Skip to main content

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

public class DuplicateKeyPropertyException :
    Exception

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.

Inheritance

Object
Exception
DuplicateKeyPropertyException
See Also