I'm a complete novice in linq.
I have a T-SQL statement that I don't know write in Linq.
The database tables structure looks like this: DB structure
The SQL code looks like this:
SELECT
e.PersonId, e.PhoneNoId, e.PhoneId, s.StateId, e.AssignDate, e.DiscardDate, e.Note
FROM
dbo.Evidence AS e
INNER JOIN
dbo.Phone AS p ON e.PhoneId = p.PhoneId
INNER JOIN
dbo.[State] AS s ON p.StateId = s.StateId
I'd like to know how to write this code in linq with lambda expression.
Thanks for help.