Hi, I struggle with a problem for quite a while and cannot find a solution. I work with lazy collection for related entities. Now I create non-persistent entities and like to either: - save them - throw them away (user hits cancel and I like to bind only persistent entites to lets say a control)
The problem comes with last sceanrio: The session is still open and I tell them session.clear() and get all all entites from the database like this IQuery query = session.CreateQuery(pHQLstring); items = query.List(); After that it complains when it trys to access lazy collections: "LazyInitilizationException: failed to lazily initialize a collection" What can I do to solve that problem? thanks antoschka --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
