我有一个要转换为 LINQ 的存储过程,但我有点卡住了。这是SQL:
select
@name = tp.Name
, @Entity = tc.Entity
, @Name = tc.Name
, @ID = tpt.ID
, @Code = tptr.Code
from tbltprop tp
Left join tblcol tc on ( tc.id = tp.ID )
Left join tblPropday tpt on ( tpt.Id = tp.Id )
Left join tblProperResult tptr on (tptr.ID = tpt.Id )
where tp.id = @chsarpID1 //input ID i get in c#
and tpt.Id = @chsarpID2
我了解如何进行单次连接,但在进行多次连接时遇到了一些麻烦。怎么办?