Are NHibernate projection/DTO objects immutable? -
If I am creating a DTO using projection and an import mapping, then by default the object is ineligible for NHibernate Or is it possible to define the unstable = incorrect in import mapping
You can write a test that uses NHibernate Receives the same DTO, then checks to see if they have similar references. If they are the same reference then I would assume that NHibernate keeps them in the identity map. My guess is that they are not equal to the context.
References (dto1, dto2)
Comments
Post a Comment