How to write LINQ query for Inner Join with and condition?
Answer Posted / Deepak Kumar Shivhare
To perform an inner join with a `AND` condition in LINQ, you can use the `Where` clause. Here is an example: n```csharpnvar result = employees1.Join(employees2, e1 => e1.Id, e2 => e2.Id, (e1, e2) => new { Id = e1.Id, Name = e1.Name }) .Where(row => row.Name == "John" && row.Salary > 50000);n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category