外部适用于linq到sql

时间:2011-02-03 10:35:27

标签: c# linq-to-sql transactions

此查询的SQL翻译的linq是什么

SELECT *    
FROM MasterTable AS [t0]
Outer APPLY UfnGetDetail([t0].x, [t0].y, z) AS [t2]

...

2 个答案:

答案 0 :(得分:1)

好的,它可以用这样的东西

 var query = from mt in db.MasterTable
             let detailResult = db.UfnGetDetail(mt.x, mt.y, z).SingleOrDefault()...

答案 1 :(得分:0)

你试过这个:

from mt in dc.MasterTable
select dc.UfnGetDetail (mt.x, mt.y)