Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to write LINQ query for Inner Join with OR condition?



How to write LINQ query for Inner Join with OR condition?..

Answer / Vineeta

To perform an inner join with an OR condition in LINQ, you can use the `||` operator within 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.Id == 1 || row.Id == 2);n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

What is linq expression?

1 Answers  


What is difference between ADO.NET and LINQ to SQL?

1 Answers  


What is difference between IEnumerable and IQueryable?

1 Answers  


In LINQ, lambda expressions underlie many of the standard query operators. Is it True or False?

1 Answers  


Explain linq method syntax and give an example?

1 Answers  


Is linq a framework?

1 Answers  


What is difference among Single, SingleOrDefault, First and FirstOrDefault?

1 Answers  


Can we use linq without entity framework?

1 Answers  


Explain what is the difference between skip() and skipwhile() extension method?

1 Answers  


What is linq in c# and its advantages?

1 Answers  


What are the benefits of LINQ on dataset?

1 Answers   Winsol Solutions,


Write a program for concat to create one sequence of data rows that contains datatabless data rows, one after the other?

1 Answers  


Categories