Reference an entity with a formula in Fluent NHibernate
问题 I have a schema with an N:1 parent-child relationship that is stored in another table and is selected by a formula. Is it possible to map this entity to the parent using a formula? public class ParentEntity { public virtual int ParentId { get; set; } public virtual ChildEntity Child{ get; set; } } public class ParentMapping : ClassMap<ParentEntity> { public ParentMapping() { Table("ParentTable"); Id(x => x.ParentId).Column("ParentId").GeneratedBy.Assigned().Not.Nullable(); References