This exception is thrown when an operation would break session-scoped identity. This occurs if the user tries to associate two different instances of the same class with a particular identifier, in the scope of a single ISession.

Namespace: NHibernate
Assembly:   NHibernate (in NHibernate)
Version: 1.2.0.4000

Syntax

Visual Basic (Declaration)
<SerializableAttribute> _
Public Class NonUniqueObjectException _
	Inherits HibernateException
C#
[SerializableAttribute]
public class NonUniqueObjectException : HibernateException
Visual C++
[SerializableAttribute]
public ref class NonUniqueObjectException : public HibernateException

Inheritance Hierarchy

System.Object
  System.Exception
    System.ApplicationException
      NHibernate.HibernateException
        NHibernate.NonUniqueObjectException