使用nhibernate QueryOver API创建子查询

时间:2013-07-17 12:30:31

标签: nhibernate subquery fluent queryover

我有以下sql:

    select q1.* from 
    (
    select id, string1, string2, date, filtered
    from bik_queries
    where filtered = 108
    ) q1
    left outer join 
    (
    select id, string1, string2, date, filtered
    from bik_queries 
    where filtered = 108
    ) q2
    on (q1.string1 = q2.string1) and (q1.string2 = q2.string2)
    and (q1.date < q2.date) 
    where q2.que_id is null

两个相同的子查询连接在一起并由select语句包装。 我正在尝试使用QueryOver编写nhibernate代码,但没有成功。有什么想法吗?

0 个答案:

没有答案
相关问题