emperon wrote:
May be I should tell nhibernate to retrieve those items read only. Do you know how to do so ?
There is a way to set ReadOnly for just that session... in Hibernate only... it's not implemented in NHibernate. This is how it would look:
session.CreateCriteria(typeof(Foo)).SetReadOnly(true);
In this case, snapshots for dirty checking are disabled in the persistence context.
This was the case for 1.2 anyway, I don't know if anyone is working on this for NHibernate, it's been mentioned in the forum a few times.