How do I configure fluent to have joined sub classes?

I have tried this, but is says " Duplicate class/entity mapping
MTGSS.Core.ClassB "

If I remove the override "IAutoMappingOverride<ClassB>", then mapping
does not include class c.

Any suggestions?

------

 public class UserMap : IAutoMappingOverride<ClassB>
    {
        public void Override(AutoMap<ClassB> mapping)
        {
            mapping.JoinedSubClass("ID",ClassCMap());

        }

        private static Action<AutoJoinedSubClassPart<ClassC>> ClassCMap
()
        {
            return (js =>
            {
                js.Map(c => c.CVariable1);
            });
        }

    }
-----

namespace MTGSS.Core
{
    using SharpArch.Core.DomainModel;

    public class ClassA :Entity
    {

        public virtual string AVariable1 { get; set; }
    }

    public class ClassB : ClassA
    {
        public virtual string BVariable1 { get; set; }
    }

    public class ClassC : ClassB
    {
        public virtual string CVariable1 { get; set; }
    }

    public class ClassD : ClassA
    {
        public virtual string DVariable1 { get; set; }
    }
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to