【发布时间】:2015-11-16 16:12:47
【问题描述】:
这是交易,我有 2 张桌子:
table (A) with columns ( colA_1 | colA_2 | colA_ID ) <br>
table (B) with columns ( colB )
我正在使用DetachedCriteria.For<AnyEntity>() 来查询 SQL。
目的是得到一个这样的sql:
Select A.colA_ID from A
where (CAST(colA_1 AS VARCHAR(10)) + CAST(colA_2 AS VARCHAR(10)))
in (select colB from B)
提前感谢您的帮助
【问题讨论】:
标签: sql nhibernate criteria projection restrictions