You can't lazy-load a collection after you've closed the
NHibernate.ISession
object from which it was loaded. The only options you have are:- Keep the
ISession
open until you've serialized the data. - Turn off lazy loading.
- make sure you fetch all the lazy loaded collections before closing the session.
- use Not.LazyLoad()
No comments:
Post a Comment
Note: only a member of this blog may post a comment.