How do I map common properties in NHibernate

Posted by Ian Oakes on Stack Overflow See other posts from Stack Overflow or by Ian Oakes
Published on 2010-03-29T00:27:20Z Indexed on 2010/03/29 0:33 UTC
Read the original article Hit count: 326

Filed under:

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?

© Stack Overflow or respective owner

Related posts about nhibernate