How do I totally disable caching in nHibernate?

后端 未结 2 1662
轻奢々
轻奢々 2021-01-17 08:58

How do I totally disable caching in nHibernate?

相关标签:
2条回答
  • 2021-01-17 09:27

    Note IStatelessSession is I think new in Nhibernate 2.0

    second level cache configuration details : Chapter 25. NHibernate.Caches

    0 讨论(0)
  • 2021-01-17 09:34

    Use the IStatelessSession to bypass the first level cache: http://darioquintana.com.ar/blogging/?p=4

    In order to use the second level cache you must explicitly configure it. You will not use it if you don't.

    You can also turn off lazy loading in your mappings. lazy=false.

    0 讨论(0)
提交回复
热议问题