What does Session.Clear() do in NHibernate? I mean, what is the meaning of Clear in session?
The NHibernate session encapsulates a unit of work as specified by the unit of work pattern.
An nHibernate session maintains all changes to the object model. At some point, it needs to synchronize these changes with the database.
A fetching strategy is the strategy NHibernate will use for retrieving associated objects if the application needs to navigate the association. Fetch strategies may be declared in the O/R mapping metadata, or overridden by a particular HQL or Criteria query.
Not sure what else.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With