Hi
for the cache, in mapping class I wrote:
public class ArticlesMap:ClassMap<Articles>
{
Id(x=>x.Id);
Map(x=>x.Tltle);
Map(x=>x.Article).LazyLoad();
Cache.ReadOnly();
}
In configuration:
Fluently
.Configure()
.Database(MsSqlConfiguration...
.Cache(c =>
c.UseQueryCache().ProviderClass(typeof(NHibernate.Caches.SysCache.SysCacheProvider).AssemblyQualifiedName)))
.Mappings(m => m.FluentMappings.AddFromAssemblyOf<...>())
.BuildSessionFactory();
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.