NHibernate QueryOver to join unrelated entities

前端 未结 4 1552
我寻月下人不归
我寻月下人不归 2020-12-16 20:07

I have the following query working which gets the results I want:

int associatedId = 123;

MyObject alias = null;

var subQuery = QueryOver.Of

        
4条回答
  •  生来不讨喜
    2020-12-16 20:37

    You cannot do that using QueryOver, Criteria or Linq. The only way you can do this is via HQL.

    http://www.codewrecks.com/blog/index.php/2009/09/04/theta-join-in-hql-join-with-unrelated-entities/

提交回复
热议问题