Table Per Subclass Inheritance mapping by NHibernate Mapping-by-Code
问题 How to write mappings in new NHibernate Mapping-By-Code in Table Per Subclass strategy for this classes: public class Person { public virtual int Id { get; set; } public virtual string Name { get; set; } } public class JuridicalPerson : Person { public virtual int Id { get; set; } public virtual string LegalName { get; set; } } public class PrivatePerson : Person { public virtual int Id { get; set; } public virtual bool Sex { get; set; } } 回答1: Here is a possible mapping in a slighly