NHibernate caching issue - When to call Evict?
问题 I've run into an apparent caching issue where what's being returned by NHibernate is not matching up with what's in the DB. I believe this is level2 cache data. It looks like I can use the Evict to do this, but when should the Evict method actually be called? For my particular application, the data is going to be unique to the user and chances are the data provided will only be used once*. Can I disable Level2 caching for these sets of objects completely? UPDATE 10/31 My scenario is this: I