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.v20.2.dll
NuGet Package: DevExpress.Xpo
NuGet Packages: DevExpress.WindowsDesktop.Xpo, DevExpress.Xpo
Declaration
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.
See Also