I have a dbcontext that contains 2 tables "Question" and "QuestionComments".I want to join them on Question.Id=QuestionComments.QuestionId and also wants to use where statement like Question.id=2
The equivalent SQL is:
SELECT * FROM Questions
INNER JOIN QuestionComments
ON Questions.Id=QuestionComments.QuestionId
Where Questions.Id=3163