How do I totally disable caching in nHibernate?

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

How do I totally disable caching in nHibernate?

2条回答
  •  孤城傲影
    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.

提交回复
热议问题