Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

LocalSessionFactoryObject.EntityCacheStrategies Property

Specify the cache strategies for entities (persistent classes or named entities). This configuration setting corresponds to the <class-cache> entry in the "hibernate.cfg.xml" configuration format.

For example:

 <property name="entityCacheStrategies"> <props> <prop key="MyCompany.Customer">read-write</prop> <prop key="MyCompany.Product">read-only,myRegion</prop> </props> </property>

[Visual Basic]
Public WriteOnly Property EntityCacheStrategies() As Properties
   Public Set
   End Set
End Property
[C#]
public Properties EntityCacheStrategies { public set; }

See Also

LocalSessionFactoryObject Class | Spring.Data.NHibernate Namespace