[fluent-nhib] Re: L2 Cache not caching querys...

2010-01-10 Thread Ollie
Plus also the 'Country' is mapped as follows: public CountryMap() { Table("Countries"); Not.LazyLoad(); Cache.ReadWrite().IncludeAll(); Id(x => x.Id); Map(x => x.TwoLetter); Map(x => x.ThreeLetter); Map(x =

[fluent-nhib] L2 Cache not caching querys...

2010-01-10 Thread Ollie
This is really a question for 'Paul' as it appears James & Hudson spend to long playing CS to know anything about L2 caching in FNH ;) I've managed to get L2 caching for 'get' working with FNH but it's not working for queries and I don't know why, do you have any ideas? The session factory is con

Re: [fluent-nhib] Re: Discriminating sub classes with null values?

2010-01-10 Thread Paul Batum
Hi Boz, I think maybe I misunderstood your initial post somewhat, so I apologise for the confusion. My mistake was thinking that the relationship could be mutated over time (start off null, then assigned, then maybe nulled out). Given that this is not the case, I think Martin's suggestion here is