NHIbernate中的session
学习NHibernate的时候常常对session理解的不是很清楚,看过NHibernate in action中的解释为:
The NHibernate notion of a session is something between connection and transaction.
It may be easier to think of a session as a cache or collection of loaded objects relatingto a single unit of work.
这下便对其有了一点认识,
NHibernate can detect changes to the objects in this unit of
work. We sometimes call the ISession a persistence manager because it’s also the inter-
face for persistence-related operations such as storing and retrieving objects.
posted on 2010-05-24 23:02 MoonWalker 阅读(179) 评论(0) 编辑 收藏 举报