I want to (auto)map a base class and its derived class to two different tables, as described here by ayende (unioned subclasses).
however, according to fluent nHibernate's documentation, I don't see a way do do that.
the property in IAutoMappingOverride they refer to is "IsDiscriminated", but that only difrrentiates between table-per-heirarchy and table-per-subclass.
Is it possible that automapping doesn't support unioned subclasses? and if so- can anyone suggest a workaround?
thanks,
Jhonny
Asked
Active
Viewed 362 times
2

J. Ed
- 6,692
- 4
- 39
- 55
-
5 years later.. did you ever figure this one out? I would also like to know a solution to this without writing too many overrides! – adaam Jun 03 '16 at 14:52
-
Wow, so much time has passed I don't think I even understand my own question anymore... In any case, I think these days NHibernate has its own mapping by code feature, so you're probably better off using that. Sorry I'm not able to provide more help... – J. Ed Jun 10 '16 at 12:22
-
No worries, thanks for you help! Settled on a different solution in the end anyway – adaam Jun 14 '16 at 14:13