What does Session.Clear() do in NHibernate? I mean, what is the meaning of Clear in session?
+3
A:
- It will clear the unit of work (if you have unflushed changes, they will be discarded)
- It will remove all current entities in the session from the identity map, in effect it will be as if you called session.Evict on all instances loaded through this session.
Not sure what else.
Torkel
2010-08-13 13:15:23