Top "Linq" questions

Language Integrated Query (LINQ) is a Microsoft .NET Framework component that adds native data querying capabilities to .NET languages.

Adding List<t>.add() another list

I have an IEnumerable<TravelDetails> and I am trying to add the vales in the for-loop to a …

c# .net linq
How to get values from IGrouping

I have a question about IGrouping and the Select() method. Let's say I've got an IEnumerable<IGrouping<int, …

c# linq select igrouping
Sequence contains no matching element

I have an asp.net application in which I am using linq for data manipulation. While running, I get the …

c# linq exception
Sort a list alphabetically

I have the following class: class Detail { public Detail() { _details = new List<string>(); } public IList<string> …

c# .net linq sorting
Entity Framework select distinct name

How can I do this SQL query with Entity Framework? SELECT DISTINCT NAME FROM TestAddresses

c# linq entity-framework distinct
How can I sort generic list DESC and ASC?

How can I sort generic list DESC and ASC? With LINQ and without LINQ? I'm using VS2008. class Program { static …

c# .net linq
Unable to create a constant value of type Only primitive types or enumeration types are supported in this context

I am getting this error for the query below Unable to create a constant value of type API.Models.PersonProtocol. …

c# linq entity-framework join
Return anonymous type results?

Using the simple example below, what is the best way to return results from multiple tables using Linq to SQL? …

c# linq linq-to-sql
LINQ Group By and select collection

I have this structure Customer - has many Orders - has many OrderItems I want to generate a list of …

c# linq group-by
Multiple WHERE clause in Linq

I'm new to LINQ and want to know how to execute multiple where clause. This is what I want to …

linq linq-to-sql