Map derived class as an independent one with FNH's Automap
Posted
by Anton Gogolev
on Stack Overflow
See other posts from Stack Overflow
or by Anton Gogolev
Published on 2010-04-23T09:09:22Z
Indexed on
2010/04/23
9:13 UTC
Read the original article
Hit count: 237
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?
© Stack Overflow or respective owner