Override Map() in SubclassMap<>
Is it possible to override a mapping in a subclass? For instance, I have a Map(x=>x.Name,"name")
in my parent ClassMap<Client>
.
I'd like to be able to control the map of the Name property in a subclass, to deny updates of that particular property.
Is that at all possible?
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by James Gregory on 16 May, 2010 05:10 PM
No, it isn't. NHibernate is pretty strict in that you either declare a property in the parent class or the child class, not both.
James Gregory resolved this discussion on 16 May, 2010 05:10 PM.