How do I map common properties in NHibernate
- by Ian Oakes
In the database I'm working with, every table repeats the same nine columns and I don't want to have to supply the same properties in each of my entities to map these columns.
I've tried adding properties to a common base class and adding them to the sub class's mapping file, but this doesn't work. I've read the documentation around inheritance mapping but this did not help.
What is the best way to map columns that repeat accross multiple tables in NHibernate?