Map derived class as an independent one with FNH's Automap
- by Anton Gogolev
Hi!
Basically, I have an ImageMetadata class and an Image class, which derives from ImageMetadata. Image adds one property: byte[] Content, which actually contains binary data.
What I want to do is to map these two classes onto one table, but I absolutely do not need NHibernates' inheritance support to kick in. I want to tailor FNH Automap to produce something like:
<class name="ImageMetadata" ...>    
    <property name="Name" ... />
    < ... />
<class name="Image" ...>    
    <property name="Name" ... />
    <property name="Content" ... />
    < ... />        
Is this at all possible?