学习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 relating

to 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. 

相关文章:

  • 2021-05-25
  • 2021-12-29
  • 2021-08-06
  • 2021-07-28
  • 2022-01-12
  • 2022-03-08
  • 2021-11-18
  • 2021-10-28
猜你喜欢
  • 2022-01-14
  • 2022-01-27
  • 2022-12-23
  • 2021-12-21
  • 2022-02-10
  • 2022-12-23
  • 2021-09-03
相关资源
相似解决方案