SessionMixingException Class

An exception that is thrown when a persistent object that belongs to a specific session is used within another session or refers to an object from another session.

Namespace: DevExpress.Xpo.Exceptions

Assembly: DevExpress.Xpo.v20.1.dll


public class SessionMixingException :
Public Class SessionMixingException
    Inherits Exception


A persistent object can refer to another object if it belongs to the same session. Also an object can be used only within a session that it belongs to. If any of these rules are violated a SessionMixingException exception will be thrown.


- ensure that your code meets the rules described above.


See Also