3
我与映射挣扎以下SQL表流利的NHibernate映射问题:多对多自加入额外的数据
|Post | |PostRelation |
|------------------| |-----------------|
|PostId |1--------*|ParentPostId |
|---other stuff--- |1--------*|ChildPostId |
| | |RelationType |
理想编号喜欢叫relatedPosts上发表财产
Dictionary <RelationType,IList<Post>>
但在最后一分钟,刚刚解决一个财产对邮政与
IList<PostRelation>.
我s成功地使用了多对多来获得相关帖子,但是这种方法失去了附加数据。
有什么建议?