I have a stored procedure that I'm converting to LINQ, but I'm a little stuck. Here's the 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
I understand how to do a single join, but I'm having some trouble making a multiple join work. How would one go about this?