SessionCtorAbsentException Class

An exception that is thrown when a persistent class doesn’t have a constructor with a Session parameter.

Namespace: DevExpress.Xpo.Exceptions

Assembly: DevExpress.Xpo.v21.1.dll

Declaration

public class SessionCtorAbsentException :
    Exception

Remarks

To use a persistent object in a session other than the default session (Session.DefaultSession) the object must have a constructor with a single Session parameter. If such a constructor is not found a SessionCtorAbsentException exception is thrown.

Solution:

- add a constructor with a single Session parameter to your persistent class.

Inheritance

Object
Exception
SessionCtorAbsentException
See Also