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?
Currently I have:
Override<ImageMetadata>(m => m.Table("Image"))
but that still adds a <joined-subclass>
element to ImageMetatada
's mapping.