I'm trying to map a joined-subclass scenario using Fluent NHibernate I have a class Entity defined in the namespace Core, and a class SubClass : Entity in the namespace SomeModule
Now I obviously don't want class Entity to know about its derived types, the SomeModules namespace references Core - not the other way around. All the examples I've been able to find use something like: public class EntityMap : ClassMap<Entity> { public EntityMap() { Id(x => x.Id) var subClassMap = JoinedSubClass<SubClass>("SubClassId", sub => sub.Map(x => x.Id)); subClassMap.Map(x => x.SomeProperty) ... } } This simply won't work in my situation - I need something akin to the NHibernate xml mapping: <joined-subclass name="SubClass" extends="Entity, Core" > <key column="SubClassId" foreign-key="FK_KollegiumEntity"/> <property name="Name" length="255" not-null="true" /> ... </joined-subclass> Is this possible with Fluent NHibernate? Regards, Martin Faartoft --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---