Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

LocalSessionFactoryObject.CollectionCacheStrategies Property

Specify the cache strategies for persistent collections (with specific roles). This configuration setting corresponds to the <collection-cache> entry in the "hibernate.cfg.xml" configuration format.

For example:

 <property name="CollectionCacheStrategies"> <props> <prop key="MyCompany.Order.Items">read-write</prop> <prop key="MyCompany.Product.Categories">read-only,myRegion</prop> </props> </property>

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

See Also

LocalSessionFactoryObject Class | Spring.Data.NHibernate Namespace