Can't get Fluent nHibernate to work with Subclasses
问题 So I would like to have a BaseEntity which contains common columns that appear in all tables and use inheritance to keep mapping of these fields in one place. For the sake of simplicity I will only include one field (Id). The code looks as follows: [Serializable] public abstract class BaseEntity { public Guid Id { get; set; } } public class Hedge : BaseEntity { public virtual DateTime HedgeDate { get; set; } public virtual DateTime SettleDate { get; set; } } public class Trade : BaseEntity {