Search code examples
nhibernatenhibernate-mappingnhibernate-3

Disable cache for one model


I got a table which is modified by two applications. One of them is using nhibernate. How do I disable caching for that table? Can it be done in the mapping file?


Solution

  • Cache is not enabled by default.

    If you are referring to the "first level cache", i.e. the Session, there is something wrong with your usage pattern.