Page 1 of 1

nHibernate Entity Caching

Posted: Wed 03 Aug 2011 04:49
by SteveB
I'm no expert on second level entity caching in nHibernate so was reading this article this morning on how to implement it:

http://nhforge.org/blogs/nhibernate/arc ... cache.aspx

The part the interested me was
To enable caching on the entity level, add the following property right below the class definition in the Product.hbm.xml file:


I looked at one of my model classes and couldn't see any settings for this.

Am I missing something! Have you got any samples on how to implement entity caching.

Posted: Thu 04 Aug 2011 12:08
by StanislavK
At the moment, Entity Developer does not provide such functionality. We will consider implementing it, and will post here about the results.

As a temporary workaround, you can specify the caching settings manually in the .xml files.