NHibernate - multiple JOIN to the same table by different keys

前端 未结 2 1817
我寻月下人不归
我寻月下人不归 2021-01-19 00:16

Another NHibernate JOIN problem.

I\'m trying to join two different properties from one table by different two keys. But I can\'t get the second JOIN property.

<
2条回答
  •  庸人自扰
    2021-01-19 00:58

    Apparently, this cannot be done at the moment with NHibenate mappings. The closest solution, suggested by Spencer Ruport, is to create a view and map the object to it.

提交回复
热议问题