I am n00b at NHibernate too, but could http://www.adamaldrich.com/blog/post/NHibernate-Read-Only-Property-Mapping.aspx be the answer? I mean specifying access="readonly" in the property mapping. Unfortunately, I cannot try it now as I am not at my computer.
On May 25, 6:57 pm, Dave McGlade <[email protected]> wrote: > As a new NHibernate user, I've been carrying out some tests that have > led me to want a property that should not be persisted. Simply not > naming the column in the HBM.XML files isn't enough because NHibernate > finds the Property by reflection. Using insert=false/update=false > isn't enough because that still wants to read the value from the > database. Declaring the property as virtual does work, but I don't > like it because virtual has semantic implications and so I can't > guarantee we could always use that approach. > > So what is the best way of marking a property as 'to be ignored for > persistance? -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
