If I create a DTo using projection and an import mapping, is the object by default then immutable for NHibernate or is it possible to define mutable=false in the import mapping?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could write a test that gets the same DTO from NHibernate then checks to see if they are reference equal. If they are reference equal then I would assume NHibernate keeps them in the identity map. My guess is that they are not reference equal.