Gang Of Coders
Home
About Us
Contact Us
All Linq Solutions on Gang of Coders
Total of 556 Linq Solutions
LINQ's Distinct() on a particular property
C#
Linq
.Net 3.5
Distinct
Shortest method to convert an array to a string in c#/LINQ
C#
Linq
Arrays
When should I dispose of a data context
C#
Linq
Linq to-Sql
LINQ Joining in C# with multiple conditions
C#
Linq
Join
Multiple Conditions
Why aren't C# static class extension methods supported?
C#
Linq
Language Design
Difference between Select and Where in Entity Framework
C#
.Net
Linq
Entity Framework
Linq to-Sql
LINQ + Foreach vs Foreach + If
C#
Linq
Foreach
Executing a certain action for all elements in an Enumerable<T>
Linq
C# 3.0
Enumerable
Is the Linq Count() faster or slower than List.Count or Array.Length?
C#
.Net
Linq
Problem with LINQ to Entities and String.StartsWith
.Net
Linq
Entity Framework
Linq to-Entities
Why does IQueryable.All() return true on an empty collection?
.Net
Linq
Logic
LINQ: How to skip one then take the rest of a sequence
C#
Linq
List
Loops
Skip
Python's list comprehension vs .NET LINQ
C#
Python
Linq
List Comprehension
ToList().ForEach in Linq
C#
Linq
Entity Framework
Split an IEnumerable<T> into fixed-sized chunks (return an IEnumerable<IEnumerable<T>> where the inner sequences are of fixed length)
C#
Linq
Ienumerable
Entity Framework: There is already an open DataReader associated with this Command
Linq
Entity Framework
Sql Server-2008
The specified cast from a materialized 'System.Int32' type to the 'System.Double' type is not valid
C#
asp.net Mvc
Linq
How can you handle an IN sub-query with LINQ to SQL?
Sql
Linq
Linq to-Sql
Why is .ForEach() on IList<T> and not on IEnumerable<T>?
C#
List
Linq
C# 3.0
Ienumerable
PowerShell equivalent of LINQ Any()?
Linq
Powershell
Convert string[] to int[] in one line of code using LINQ
C#
.Net
Linq
Extension Methods
IEnumerable to string delimited with commas?
C#
asp.net
Linq
ado.net
Datatable
Random element of List<T> from LINQ SQL
C#
.Net
Linq
Random
Find the intersection of two lists in linq?
C#
Linq
LINQ Join with Multiple From Clauses
C#
Linq
Chart of IEnumerable LINQ equivalents in Scala?
C#
Linq
Scala
Ienumerable
Iterable
Can I LINQ a JSON?
C#
.Net
Json
Linq
Linq to-Json
Creating a LINQ select from multiple tables
C#
Linq
C#: Compare contents of two IEnumerables
C#
Linq
Determine if collection is of type IEnumerable<T>
C#
.Net
Linq
Collections
Types
Check for missing number in sequence
C#
Algorithm
Linq
Is a linq query to ConcurrentDictionary Values threadsafe?
C#
Linq
.Net 4.0
Remove items of list from another lists with criteria
C#
.Net
Linq
List
In LINQ, select all values of property X where X != null
C#
Linq
Entity Framework, Code First and Full Text Search
Linq
Entity Framework
Full Text-Search
Ef Code-First
Check if list contains item from other list in EntityFramework
C#
Database
Linq
Entity Framework
Log Queries executed by Entity Framework DbContext
C#
Linq
Entity Framework
asp.net Mvc-5
Entity Framework-6
You must add a reference to assembly mscorlib, version=4.0.0
C#
Linq
asp.net Core
.Net Core
Why does ReSharper tell me "implicitly captured closure"?
C#
Linq
Resharper
Combining two expressions (Expression<Func<T, bool>>)
C#
Linq
Lambda
Expression
How do I perform Date Comparison in EF query?
C#
Linq
Datetime
Linq to-Entities
Datetime Comparison
Enabling Service Broker in SQL Server 2008
asp.net
Linq
Caching
Datacontext
Sqlcachedependency
Understanding .AsEnumerable() in LINQ to SQL
C#
Linq
Linq to-Sql
Asenumerable
Using LINQ, select list of objects inside another list of objects
C#
Linq
Select
Linq to-Objects
Difference Between Select and SelectMany
C#
Linq to-Sql
Linq
LINQ: Not Any vs All Don't
C#
.Net
Performance
Linq
Resharper
Using LINQ to convert List<U> to List<T>
C#
Linq
List
.Net 3.5
Casting
Cannot convert lambda expression to type 'object' because it is not a delegate type
C#
Linq
Lambda
Delegates
Why is there no Linq method to return distinct values by a predicate?
C#
Linq
Distinct
Can you create a simple 'EqualityComparer<T>' using a lambda expression
C#
Linq
Distinct
linq question: querying nested collections
C#
.Net
Linq
Collections
Linq to-Xml
How to do an "in" query in entity framework?
C#
.Net
Linq
Entity Framework
Finding first index of element that matches a condition using LINQ
C#
Linq
filtering a list using LINQ
C#
Linq
Collections
Tags
Ienumerable
Calculating Count for IEnumerable (Non Generic)
C#
.Net
Linq
Extension Methods
Ienumerable
Can I declare / use some variable in LINQ? Or can I write following LINQ clearer?
C#
Linq
IQueryable<T> does not contain a definition for 'Include' and no extension method 'Include'
C#
Linq
How to merge a collection of collections in Linq
Linq
Collections
Linq to-Objects
Equivalent of SQL ISNULL in LINQ?
C#
Sql
Linq
Isnull
Linq OrderBy against specific values
C#
Linq
Linq to-Objects
linq case statement
C#
Sql
Linq
Intersect LINQ query
C#
.Net
Linq
Mutating the expression tree of a predicate to target another type
C#
Linq
Lambda
Expression Trees
Sorting a list using Lambda/Linq to objects
C#
Linq
Lambda
Linq to-Objects
What are the benefits of a Deferred Execution in LINQ?
Linq
Cannot initialize type '' with a collection initializer because it does not implement 'System.Collections.IEnumerable'
C#
asp.net
Linq
Compare Two Lists Via One Property Using LINQ
C#
Linq
List
Collections
Select All distinct values in a column using LINQ
C#
Linq
Visual Studio-2012
Csv
asp.net Web-Api
How to do joins in LINQ on multiple fields in single join
C#
Linq
Join
Entity Framework core - Contains is case sensitive or case insensitive?
C#
Database
Postgresql
Linq
Entity Framework-Core
LINQ OrderBy is not sorting correctly
C#
Linq
LINQ identity function
C#
Linq
Lambda
Linq to-Objects
LINQPad, using multiple datacontexts
C#
Linq
Linq to-Sql
Datacontext
Linqpad
Best ways to format LINQ queries
.Net
Linq
Formatting
Code Readability
IEnumerable is empty?
.Net
Linq
Ienumerable
Use a delegate for the equality comparer for LINQ's Distinct()
C#
Linq
Distinct
How many Include I can use on ObjectSet in EntityFramework to retain performance?
Performance
Linq
Entity Framework
asp.net Mvc-2
Linq to-Entities
'Date' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported
C#
Entity Framework
Linq
Linq to-Entities
Is there a LINQ function for getting the longest string in a list of strings?
C#
String
Linq
foreach + break vs linq FirstOrDefault performance difference
C#
Performance
Linq
.Net 4.0
Foreach
Performance of LINQ Any vs FirstOrDefault != null
C#
Linq
Quickest way to compare two generic lists for differences
C#
Linq
List
Row_number over (Partition by xxx) in Linq?
C#
Linq
.Net 4.0
Using Linq to objects, how to create an empty dictionary of <string, string> easily?
C#
Linq
What's the underscore.js equivalent to LINQ's SelectMany operator?
Javascript
underscore.js
Linq
Check for any element that exists in two collections
C#
Linq
Collections
When to use BlockingCollection and when ConcurrentBag instead of List<T>?
C#
Wpf
Multithreading
Linq
Task Parallel-Library
Construct LambdaExpression for nested property from string
C#
.Net
Linq
Lambda
Expression Trees
Moqing Entity Framework 6 .Include() using DbSet<>
Linq
Entity Framework
Unit Testing
Group by in LINQ
C#
Linq
Group By
Returning IEnumerable<T> vs. IQueryable<T>
C#
Linq
Linq to-Sql
Ienumerable
Iqueryable
What's the hardest or most misunderstood aspect of LINQ?
C#
Linq
C# 3.0
Async await in linq select
C#
Linq
Asynchronous
LINQ with groupby and count
C#
Linq
Group By
Select distinct using linq
C#
Linq
List
Class
Using IQueryable with Linq
C#
Linq
Iqueryable
Group By Multiple Columns
C#
.Net
Linq
Group By
Aggregate
LINQ query on a DataTable
C#
.Net
Linq
Datatable
.Net 3.5
How to merge a list of lists with same type of items to a single list of items?
C#
Linq
Lambda
How to get values from IGrouping
C#
Linq
Select
Igrouping
Searching if value exists in a list of objects using Linq
C#
Linq
Fluent and Query Expression — Is there any benefit(s) of one over other?
C#
Linq
LINQ query to select top five
C#
Linq
OrderBy descending in Lambda expression?
Linq
Lambda
LINQ: Select an object and change some properties without creating a new object
C#
Linq
How can I get the index of an item in a list in a single step?
C#
Linq
Lookup
Extension methods must be defined in a non-generic static class
C#
.Net
Linq
Extension Methods
Compiler Errors
Linq to Entities - SQL "IN" clause
.Net
Linq
Linq to-Entities
In Clause
Multiple Order By with LINQ
C#
Linq
Lambda
Find an item in a list by LINQ
C#
Linq
When to use Cast() and Oftype() in Linq
C#
.Net
Linq
LINQ Single vs First
.Net
Linq
Check if two lists are equal
C#
Linq
LINQ query to return a Dictionary<string, string>
C#
.Net
Linq
Dictionary
Linq list of lists to single list
C#
Linq
LINQ - Full Outer Join
C#
.Net
Linq
Outer Join
Full Outer-Join
Linq style "For Each"
C#
.Net
Linq
Foreach
"A lambda expression with a statement body cannot be converted to an expression tree"
C#
Linq
Entity Framework
Linq to-Entities
Get a list of distinct values in List
C#
Linq
List
Distinct
Linq-to-Entities Join vs GroupJoin
C#
Linq
Linq to-Entities
How to convert linq results to HashSet or HashedSet
C#
.Net
Linq
ToList()-- does it create a new list?
C#
Linq
Max return value if empty query
C#
.Net
Entity Framework
Linq
Lambda
LINQ Group By into a Dictionary Object
Linq
Dictionary
LINQ to read XML
C#
Xml
Linq
Linq to-Xml
How change List<T> data to IQueryable<T> data
.Net
Linq
Code equivalent to the 'let' keyword in chained LINQ extension method calls
C#
Linq
Extension Methods
Linq to-Objects
When to use .First and when to use .FirstOrDefault with LINQ?
C#
.Net
Linq
SQL to LINQ Tool
Sql
Linq
Return anonymous type results?
C#
Linq
Linq to-Sql
Difference between Lookup() and Dictionary(Of list())
C#
.Net
vb.net
Linq
Linq select objects in list where exists IN (A,B,C)
C#
Linq
List
Linq to-Objects
Exists
Sort a list from another list IDs
C#
Linq
Sorting
Collections
What is the Java equivalent for LINQ?
Java
Linq
Entity framework linq query Include() multiple children entities
Linq
Entity Framework
Lazy Loading
Max or Default?
C#
.Net
Linq
Linq to-Sql
LINQ Contains Case Insensitive
C#
Linq
Convert list to dictionary using linq and not worrying about duplicates
C#
Linq
Dictionary
Select a Dictionary<T1, T2> with LINQ
C#
.Net
Linq
Generics
LINQ-to-SQL vs stored procedures?
Linq
Linq to-Sql
Stored Procedures
Find() vs. Where().FirstOrDefault()
C#
Linq
Linq to-Objects
Learning about LINQ
Linq
Linq to-Sql
Linq to-Entities
Linq to-Objects
How do I use LINQ to obtain a unique list of properties from a list of objects?
Linq
Class
List
C# 3.0
Properties
How can I get LINQ to return the object which has the max value for a given property?
C#
Linq
Linq to-Objects
Can I return the 'id' field after a LINQ insert?
C#
.Net
Linq
Linq to-Sql
Func<T> with out parameter
C#
.Net
Linq
Generics
Func
LINQ equivalent of foreach for IEnumerable<T>
Linq
Foreach
Ienumerable
How to check if IEnumerable is null or empty?
C#
.Net
Linq
Collections
Ienumerable
Is it possible to Pivot data using LINQ?
Linq
Pivot Table
Is it better to use Enumerable.Empty<T>() as opposed to new List<T>() to initialize an IEnumerable<T>?
C#
Linq
Constructor
Distinct by property of class with LINQ
C#
Linq
Distinct
Using Linq to group a list of objects into a new grouped list of list of objects
C#
Linq
LINQ: "contains" and a Lambda query
C#
.Net
List
Linq
Lambda
Unable to create a constant value of type Only primitive types or enumeration types are supported in this context
C#
Linq
Entity Framework
Join
Where IN clause in LINQ
C#
Linq
IEnumerable vs List - What to Use? How do they work?
C#
Linq
List
Ienumerable
LINQ Aggregate algorithm explained
C#
.Net
Linq
Aggregate
EF LINQ include multiple and nested entities
.Net
asp.net Mvc-3
Linq
Entity Framework
Entity Framework-5
How to use orderby with 2 fields in linq?
C#
Linq
How to get duplicate items from a list using LINQ?
C#
Linq
Duplicates
What is the point of Lookup<TKey, TElement>?
C#
.Net
Linq
Lookup
Get "Value" property in IGrouping
C#
Linq
Data Structures
Igrouping
FirstOrDefault: Default value other than null
.Net
Linq
LINQ - Left Join, Group By, and Count
C#
.Net
Linq
Linq to-Sql
Check if list contains element that contains a string and get that element
C#
.Net
Linq
List
Contains
Sequence contains no elements?
C#
Linq
Create a list from two object lists with linq
C#
Linq
LINQ order by null column where order is ascending and nulls should be last
C#
Linq
Sorting
Value cannot be null. Parameter name: source
C#
Entity Framework
Linq
Nullreferenceexception
How to get first record in each group using Linq
C#
Linq
C# 4.0
Linq to-Entities
Entity Framework select distinct name
C#
Linq
Entity Framework
Distinct
Distinct in Linq based on only one field of the table
C#
Sql
Linq
Linq with group by having count
Linq
Count
Group By
Having
Linq: GroupBy, Sum and Count
C#
.Net
Linq
How to get the index of an element in an IEnumerable?
C#
.Net
Linq
Ienumerable
Indexof
Linq to Sql: Multiple left outer joins
vb.net
Linq
Linq to-Sql
Tsql
Left Join
String.IsNullOrWhiteSpace in LINQ Expression
C#
Linq
Lambda
Null
Linq to-Entities
Using LINQ to remove elements from a List<T>
C#
.Net
Linq
List
Dynamic LINQ OrderBy on IEnumerable<T> / IQueryable<T>
C#
Linq
Ienumerable
Iqueryable
Linq to-Objects
Check whether an array is a subset of another
C#
List
Linq
Subset
How does the following LINQ statement work?
C#
.Net
Linq
LINQ Select Distinct with Anonymous Types
C#
Linq
Distinct
Anonymous Types
Equality
The specified type member 'Date' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties
Linq
Entity Framework-4
Linq to-Entities
Select multiple records based on list of Id's with linq
C#
Linq
What's the difference between IQueryable and IEnumerable
Linq
Ienumerable
Iqueryable
.Net 3.0
What is the use of Enumerable.Zip extension method in Linq?
C#
Linq
Enumerable
Adding List<t>.add() another list
C#
.Net
Linq
How to take all but the last element in a sequence using LINQ?
C#
.Net
Linq
LINQ to SQL - Left Outer Join with multiple join conditions
C#
Sql
Linq
Linq to-Sql
Outer Join
Select Multiple Fields from List in Linq
C#
Linq
Data Structures
VB.NET equivalent to C# var keyword
C#
vb.net
Linq
Keyword
Var
How to store a list in a column of a database table
Sql
Linq
Linq to-Sql
Database Design
Linq to-Entities
Query an XDocument for elements by name at any depth
C#
.Net
Xml
Linq
Linq to-Xml
LINQ, Where() vs FindAll()
C#
Linq
Syntax
Get all elements but the first from an array
C#
Linq
Is a LINQ statement faster than a 'foreach' loop?
C#
Performance
Linq
Foreach
Apply function to all elements of collection through LINQ
C#
.Net
Linq
Filling a DataSet or a DataTable from a LINQ query result set
C#
Linq
Web Services
.Net 3.5
New transaction is not allowed because there are other threads running in the session LINQ To Entity
C#
Linq
Linq to-Entities
What is the difference between LINQ ToDictionary and ToLookup
C#
Linq
LINQ to SQL Left Outer Join
.Net
Database
Linq
Linq to-Sql
LINQ: Distinct values
Linq
Distinct
How to check if all list items have the same value and return it, or return an “otherValue” if they don’t?
C#
Linq
Convert a list of objects to an array of one of the object's properties
C#
Linq
Which method performs better: .Any() vs .Count() > 0?
.Net
Linq
Performance
.Net 3.5
Extension Methods
Why are Where and Select outperforming just Select?
C#
Linq
Linq: What is the difference between Select and Where
.Net
Linq
Select
Where
Distinct not working with LINQ to Objects
C#
.Net
Linq
Iequatable
Iequalitycomparer
Create batches in linq
C#
Linq
An expression tree lambda may not contain a null propagating operator
C#
Linq
Null Coalescing-Operator
Null Propagation-Operator
Case insensitive string compare in LINQ-to-SQL
.Net
vb.net
Linq
Use LINQ to get items in one List<>, that are not in another List<>
C#
Linq
.Net 3.5
How to flatten nested objects with linq expression
C#
.Net
vb.net
Linq
Proper Linq where clauses
C#
Linq
"Order by Col1, Col2" using entity framework
C#
.Net
Linq
Entity Framework
What guarantees are there on the run-time complexity (Big-O) of LINQ methods?
C#
.Net
Linq
Algorithm
Complexity Theory
how to check if object already exists in a list
C#
Linq
List
Set multiple properties in a List<T> ForEach()?
C#
Linq
Why are ToLookup and GroupBy different?
C#
Linq
What is LINQ and what does it do?
C#
Linq
C#/Linq: Apply a mapping function to each element in an IEnumerable?
C#
Linq
Concat all strings inside a List<string> using LINQ
C#
Linq
.Net 3.5
LINQ OrderBy versus ThenBy
Linq
How do you perform a CROSS JOIN with LINQ to SQL?
C#
Linq
Linq to-Sql
Cross Join
ASP.NET MVC How to convert ModelState errors to json
C#
asp.net Mvc
Linq
Modelstate
How can I sort generic list DESC and ASC?
C#
.Net
Linq
Performance of Find() vs. FirstOrDefault()
C#
.Net
Performance
Linq
Entity Framework 4 Single() vs First() vs FirstOrDefault()
.Net
Linq
Entity Framework
Entity Framework-4
Linq to-Entities
LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression
C#
Mysql
Sql
Linq
LEFT OUTER JOIN in LINQ
C#
Linq
Join
Calling generic method with a type argument known only at execution time
C#
Linq
Generics
Reflection
Sequence contains more than one element
C#
.Net
asp.net
Linq
C#: How to convert a list of objects to a list of a single property of that object?
C#
Linq
List
linq where list contains any in list
C#
Linq
Sequence contains no matching element
C#
Linq
Exception
Lists: Count vs Count()
C#
.Net
List
Linq
Count
LINQ to Entities does not recognize the method
.Net
Linq
Entity Framework
Linq to-Entities
Specification Pattern
Could not find an implementation of the query pattern
C#
Sql
Silverlight
Wcf
Linq
Wrap a delegate in an IEqualityComparer
.Net
Linq
Delegates
Linq to Objects: does GroupBy preserve order of elements?
.Net
Linq
Group By
Why does Enumerable.All return true for an empty sequence?
C#
.Net
Linq
Enumerable
printing all contents of array in C#
C#
.Net
Arrays
Linq
Cannot convert lambda expression to type 'string' because it is not a delegate type
C#
asp.net
Linq
Lambda
Update all objects in a collection using LINQ
C#
.Net
Linq
Foreach
Checking if a list is empty with LINQ
C#
.Net
Linq
List
Easier way to populate a list with integers in .NET
C#
.Net
Linq
List
Get all column names of a DataTable into string array using (LINQ/Predicate)
C#
.Net
Linq
Datatable
Linq order by boolean
C#
Linq
How can I get every nth item from a List<T>?
C#
Linq
List
Lambda
What does Include() do in LINQ?
Sql
Linq
How to select only the records with the highest date in LINQ
C#
.Net
Linq
Linq to-Sql
Linq: adding conditions to the where clause conditionally
Linq
Entity Framework
Linq to-Sql
Split a collection into `n` parts with LINQ?
C#
.Net
Linq
Data Structures
Is it better to call ToList() or ToArray() in LINQ queries?
.Net
Linq
Performance
Retrieving Property name from lambda expression
C#
Linq
Lambda
Expression Trees
Check if one IEnumerable contains all elements of another IEnumerable
C#
.Net
Linq
Ienumerable
Elegant way to combine multiple collections of elements?
C#
Linq
Generics
Collections
LINQ: When to use SingleOrDefault vs. FirstOrDefault() with filtering criteria
.Net
Linq
Linq to-Sql
C# Pass Lambda Expression as Method Parameter
C#
Linq
Lambda
What is the purpose of AsQueryable()?
C#
.Net
Linq
Ienumerable
Iqueryable
Does the order of LINQ functions matter?
C#
Performance
Linq
NHibernate vs LINQ to SQL
Linq
Nhibernate
Linq to-Sql
Orm
How to compare only date components from DateTime in EF?
C#
Linq
Entity Framework
Linq to-Entities
Datetime Comparison
Find index of a value in an array
C#
Arrays
Linq
LINQ Ring: Any() vs Contains() for Huge Collections
C#
Linq
Performance
Benchmarking
Is it Linq or Lambda?
C#
Linq
Lambda
LINQ - Convert List to Dictionary with Value as List
C#
.Net
Linq
How do I get a distinct, ordered list of names from a DataTable using LINQ?
C#
Linq
.Net 3.5
LINQ query to return distinct field values from list of objects
C#
Linq
How do I sort strings alphabetically while accounting for value when a string is numeric?
C#
Linq
Sorting
Alphabetical
Alphanumeric
Linq to EntityFramework DateTime
C#
Linq
Entity Framework
Datetime
LINQ Join with Multiple Conditions in On Clause
Linq
Join
Determine if a sequence contains all elements of another sequence using Linq
C#
Linq
Create a dictionary on a list with grouping
C#
.Net
Linq
.Net 3.5
LINQ Using Max() to select a single row
C#
.Net
Linq
LINQ where vs takewhile
.Net
Linq
How to use the IEqualityComparer
C#
Linq
Iequalitycomparer
LINQ Distinct operator, ignore case?
C#
Linq
String
Comparison
Distinct
Linq Syntax - Selecting multiple columns
C#
Linq
Entity Framework
Linq code to select one item
C#
Linq
How to return value from Action()?
C#
.Net
Linq
How to use LINQ to select object with minimum or maximum property value
C#
.Net
Linq
Join/Where with LINQ and Lambda
C#
Linq
Join
Lambda
How do I specify the Linq OrderBy argument dynamically?
C#
Linq
Create a Tuple in a Linq Select
C#
Entity Framework
Linq
Tuples
.NET List<T> Concat vs AddRange
.Net
Linq
List
Extension Methods
Linq to SQL how to do "where [column] in (list of values)"
Linq
Linq to-Sql
How do I use LINQ Contains(string[]) instead of Contains(string)
C#
Linq
String
Contains
How to Convert all strings in List<string> to lower case using LINQ?
C#
Linq
Lambda
Foreach
C# - code to order by a property using the property name as a string
C#
.Net
Linq
Linq to-Entities
How to flatten tree via LINQ?
C#
.Net
Linq
.Net 4.0
Tree
Favorite way to create an new IEnumerable<T> sequence from a single value?
C#
Linq
C# 3.0
Paging with LINQ for objects
C#
.Net
Linq
Paging
What is the difference between "LINQ to Entities", "LINQ to SQL" and "LINQ to Dataset"
C#
Sql
Linq
Dataset
Entities
How can I filter a dictionary using LINQ and return it to a dictionary from the same type
C#
Linq
Dictionary
Linq to-Objects
Freely convert between List<T> and IEnumerable<T>
C#
Linq
List
Ienumerable
How can I make sure that FirstOrDefault<KeyValuePair> has returned a value
C#
Linq
What is "Audit Logout" in SQL Server Profiler?
C#
Linq
Sql Server-2005
Linq to-Sql
Sql Server-Profiler
Only initializers, entity members, and entity navigation properties are supported
Linq
Entity Framework
How can I do SELECT UNIQUE with LINQ?
Sql
Visual Studio
Linq
Select
Unique
how to update the multiple rows at a time using linq to sql?
C#
Sql
Entity Framework
Linq
Linq to-Sql
How do I get the MAX row with a GROUP BY in LINQ query?
.Net
Linq
Linq to-Sql
Entity framework left join
C#
Linq
Entity Framework
Linq to-Entities
Left Join
Why is LINQ JOIN so much faster than linking with WHERE?
.Net
Linq
Performance
Join
Linq to-Dataset
Using LINQ extension method syntax on a MatchCollection
C#
Linq
Number of occurrences of a character in a string
C#
Regex
Linq
What can I do to resolve a "Row not found or changed" Exception in LINQ to SQL on a SQL Server Compact Edition Database?
.Net
Linq
Linq to-Sql
"Or" equivalent in Linq Where() lambda expression
.Net
Linq
Where Clause
LIKE operator in LINQ
C#
Linq
Sql Like
How to perform Join between multiple tables in LINQ lambda
C#
Linq
Join
Lambda
Multiple Tables
LINQ Orderby Descending Query
C#
Linq
Sql Order-By
Sort a list alphabetically
C#
.Net
Linq
Sorting
What is the leading LINQ for JavaScript library?
Javascript
Json
Linq
Linq Query keeps throwing "Unable to create a constant value of type System.Object....", Why?
C#
.Net
Winforms
Linq
Entity Framework
How can I conditionally apply a Linq operator?
C#
Linq
Linq to-Sql
Where is the "Fold" LINQ Extension Method?
C#
Linq
Extension Methods
Reduce
Is there a C# LINQ syntax for the Queryable.SelectMany() method?
C#
Linq
Keyword
Iqueryable
Count property vs Count() method?
C#
Linq
List
Collections
Count
How do I find the text within a div in the source of a web page using C#
C#
Html
Linq
Why does the C# compiler go mad on this nested LINQ query?
C#
Linq
Does Distinct() method keep original ordering of sequence intact?
C#
List
Linq
Duplicates
Union Vs Concat in Linq
C#
Linq
Does LINQ work with IEnumerable?
.Net
Linq
Ienumerable
Roslyn failed to compile code
C#
.Net
Linq
Roslyn
Intersection of multiple lists with IEnumerable.Intersect()
C#
.Net
Linq
Swap two items in List<T>
C#
Linq
Swap
How to achieve "MinOrDefault" in LINQ?
C#
Linq
Min
LINQ OrderBy with more than one field
C#
Linq
How to await a list of tasks asynchronously using LINQ?
C#
Linq
Async Await
Ignore namespaces in LINQ to XML
.Net
Xml
Linq
Remove item from list based on condition
C#
.Net
Entity Framework
Linq
Sorting a List<int>
C#
Linq
List
LINQ .Any VS .Exists - What's the difference?
C#
Linq
Collections
C# LINQ find duplicates in List
Linq
List
Duplicate Removal
LINQ Group By and select collection
C#
Linq
Group By
Paging a collection with LINQ
Linq
.Net 3.5
Searching a tree using LINQ
C#
.Net
Linq
What is the difference between IQueryable<T> and IEnumerable<T>?
.Net
Linq
.Net 3.5
Ienumerable
Iqueryable
Client side GroupBy is not supported
C#
Linq
Group By
Entity Framework-Core-3.0
How do I apply OrderBy on an IQueryable using a string column name within a generic extension method?
C#
.Net
Linq
Entity Framework
Expression Trees
How do I get the max ID with Linq to Entity?
C#
Linq
Entity Framework
Linq to-Entities
Standard Deviation in LINQ
Linq
Standard Deviation
Multiple WHERE Clauses with LINQ extension methods
C#
Linq
LINQ to Entities does not recognize the method 'System.String Format(System.String, System.Object, System.Object)'
Linq
Entity Framework
Linq to-Entities
F# List.map equivalent in C#?
C#
.Net
Linq
F#
Map two lists into a dictionary in C#
C#
.Net
Linq
Dictionary
Ienumerable
What is the opposite method of Any<T>
C#
Linq
Linq Order by a specific number first then show all rest in order
C#
asp.net
Linq
Sorting
The model backing the 'ApplicationDbContext' context has changed since the database was created
.Net
asp.net Mvc
Linq
Entity Framework
asp.net Mvc-5
Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type
C#
Linq
Lambda
.Net 4.5
'Contains()' workaround using Linq to Entities?
C#
Linq
Entity Framework
.Net 3.5
Linq to-Entities
ascending/descending in LINQ - can one change the order via parameter?
C#
Linq
C# Linq Where Date Between 2 Dates
C#
Linq
Using Linq to return a Comma separated string
C#
Linq
Is linq's let keyword better than its into keyword?
C#
Linq
Split List into Sublists with LINQ
C#
Linq
Data Structures
Use LINQ to move item to top of list
C#
Linq
Sorting
How to use LINQ Distinct() with multiple fields
C#
Linq
Distinct
how to remove empty strings from list, then remove duplicate values from a list
C#
Linq
System.Collections.Generic.List does not contain a definition for 'Select'
C#
Linq
Is there a LINQ library for C++?
C++
Linq
Unix
Expression trees for dummies?
C#
.Net
Linq
Expression Trees
Bulk-deleting in LINQ to Entities
C#
Database
Linq
Entity Framework
Linq to-Entities
Good way to get the key of the highest value of a Dictionary in C#
C#
Linq
Dictionary
Max
Find() and First() throws exceptions, how to return null instead?
C#
.Net
Linq
Lambda
Linq-to-SQL ToDictionary()
C#
Linq
Linq to-Sql
ILookup<TKey, TVal> vs. IGrouping<TKey, TVal>
C#
Linq
Group By
Igrouping
Ilookup
The ':' character, hexadecimal value 0x3A, cannot be included in a name
C#
Xml
Linq
Linq to-Xml
Convert string to int array using LINQ
C#
Linq
Why are some object properties UnaryExpression and others MemberExpression?
.Net
Linq
Linq Expressions
Linq - SelectMany Confusion
C#
Linq
Data Structures
Linq to-Objects
C# Determine Duplicate in List
C#
Linq
Algorithm
List
Generics
Simplest way to form a union of two lists
C#
.Net
Linq
List
Union
Querying DataColumnCollection with LINQ
C#
Linq
Datatable
Asqueryable
Datacolumncollection
How to Count Duplicates in List with LINQ
C#
Linq
Can I split an IEnumerable into two by a boolean criteria without two queries?
C#
.Net
Linq
Limit Number of Results being returned in a List from Linq
C#
asp.net Mvc-3
Linq
Entity Framework
Difference between Expression<Func<>> and Func<>
C#
Linq
LINQ: Select where object does not contain items from list
C#
Linq
How to convert IEnumerable<string> to one comma separated string?
C#
String
Linq
Collections
Ienumerable
Fastest way to search in a string collection
C#
Winforms
Linq
Collections
String Search
Should I use two "where" clauses or "&&" in my LINQ query?
C#
.Net
Linq
Using GroupBy, Count and Sum in LINQ Lambda Expressions
Linq
Count
Lambda
Group By
Sum
Linq order by, group by and order by each group?
C#
Linq
Group By
Sql Order-By
How to get index using LINQ?
C#
.Net
Linq
C# 3.0
How to write a VB.Net Lambda expression
vb.net
Linq
Lambda
Entity Framework - "Unable to create a constant value of type 'Closure type'..." error
Linq
Entity Framework
How to do SQL Like % in Linq?
.Net
Linq
Tsql
Linq to-Entities
Sql Like
linq case insensitive (without toUpper or toLower)
C#
Linq
JContainer, JObject, JToken and Linq confusion
C#
Json
Linq
json.net
How to do a subquery in LINQ?
C#
Linq
Linq to-Sql
Conversion from List<T> to array T[]
C#
.Net
Arrays
Linq
List
Multiple WHERE clause in Linq
Linq
Linq to-Sql
Sort list in C# with LINQ
C#
Linq
How to check list A contains any value from list B?
C#
Linq
List
Instantiate empty IQueryable for use with Linq to sql
C#
asp.net Mvc
Linq
Linq to-Sql
Iqueryable
TransactionScope vs Transaction in LINQ to SQL
C#
Linq
Linq to-Sql
Transactions
Check if KeyValuePair exists with LINQ's FirstOrDefault
C#
Linq
Null
Multiple "order by" in LINQ
Linq
Sql Order-By
Convert Linq Query Result to Dictionary
C#
Linq
Linq to-Sql
Do I need to consider disposing of any IEnumerable<T> I use?
C#
Linq
Ienumerable
Dispose
Is it possible to use Full Text Search (FTS) with LINQ?
Sql Server
Linq
Full Text-Search
How to Quickly Remove Items From a List
C#
Linq
List
Collections
Why is LINQ .Where(predicate).First() faster than .First(predicate)?
C#
.Net
Performance
Linq
Handling 'Sequence has no elements' Exception
C#
.Net
Linq
Entity Framework
ado.net
The type of one of the expressions in the join clause is incorrect in Entity Framework
C#
Linq
Entity Framework
Join
Linq to-Entities
Preserving order with LINQ
C#
Arrays
Linq
Sorting
Data Structures
LINQ Group By Multiple fields -Syntax help
C#
Linq
Group By
Sort one list by another
C#
Linq
List
Sorting
Linq distinct - Count
C#
Linq
Linq Query Group By and Selecting First Items
C#
.Net
Linq
How to set property value using Expressions?
C#
Linq
Expression
How to compare DateTime without time via LINQ?
C#
.Net
Linq
Datetime
Subtract a generic list from another
C#
Linq
C# Linq Group By on multiple columns
C#
Linq
Group By
Aggregate
Pass a lambda expression in place of IComparer or IEqualityComparer or any single-method interface?
Linq
Extension Methods
Ienumerable
Iequalitycomparer
Icomparer
LINQ performance FAQ
C#
.Net
Linq
Performance
Fetch vs FetchMany in NHibernate Linq provider
Linq
Nhibernate
Fetch
Eager Loading
XElement namespaces (How to?)
C#
Xml
Linq
Namespaces
Linq query with nullable sum
C#
Linq
Linq to-Sql
Sum
Nullable
Check if a string has at least one number in it using LINQ
C#
Linq
Convert DataRowCollection to IEnumerable<T>
C#
.Net
Linq
.Net 3.5
Ienumerable
"The LINQ expression node type 'Invoke' is not supported in LINQ to Entities" - stumped!
C#
asp.net
Linq
Entity Framework
Linq to-Entities
Linq OrderByDescending, null first
C#
Linq
Easiest way to Rotate a List in c#
C#
Arrays
Linq
List
Sum of items in a collection
Linq
Sum
LINQ to SQL Where Clause Optional Criteria
C#
asp.net
Linq
Linq to-Sql
How to select values within a provided index range from a List using LINQ
C#
Linq
List
Range
Using LINQ to concatenate strings
C#
Linq
String Concatenation
The result of a query cannot be enumerated more than once
C#
asp.net
Linq
Entity Framework
Entity Framework-4
Convert SQL to Linq left join with null
C#
.Net
Sql
Linq
LINQ query to find if items in a list are contained in another list
C#
Linq
Unit testing with Entity Framework
Linq
Unit Testing
Entity Framework
LINQ: Determine if two sequences contains exactly the same elements
C#
.Net
Linq
Access the value of a member expression
C#
Linq
Lambda
Expression Trees
What's your favorite LINQ to Objects operator which is not built-in?
C#
Linq
Extension Methods
Ienumerable
Linq to-Objects
Differences between IQueryable, List, IEnumerator?
C#
Linq
List
Ienumerable
Iqueryable
Why is .Contains slow? Most efficient way to get multiple entities by primary key?
C#
.Net
Entity Framework
Linq
Entity Framework-4.1
Flatten List in LINQ
C#
Linq
List
How to use LINQ with dynamic collections
C#
Linq
Get sum of two columns in one LINQ query
C#
.Net
Linq
Linq to-Sql
Sum
How to find List has duplicate values in List<string>
C#
Linq
List
How to use Lambda in LINQ select statement
C#
asp.net Mvc
Linq
Lambda
LEFT JOIN in LINQ to entities?
C#
Linq
Entity Framework
Entity Framework-4
Linq to-Entities
How to remove the first element in an array?
C#
Arrays
Linq
How to null check c# 7 tuple in LINQ query?
C#
Linq
C# 7.0
How can I use Linq in a T4 template?
Linq
T4
Filtering Null values in Select
Linq
Dynamic WHERE clause in LINQ
C#
Linq
Dynamic
Where Clause
What does LINQ return when the results are empty
C#
Linq
How to get a distinct list from a List of objects?
C#
Linq
Class
List
Properties
Dictionary.FirstOrDefault() how to determine if a result was found
C#
.Net
Linq
How to get the closest number from a List<int> with LINQ?
C#
Linq
List
Numbers
What are Expression Trees, how do you use them, and why would you use them?
C#
.Net
Linq
Expression Trees
Directory.GetFiles of certain extension
C#
Linq
Directory
Getfiles
Cast LINQ result to ObservableCollection
C#
Linq
Casting
Using LINQ to Update A Property in a List of Entities
Linq
C# Difference between First() and Find()
C#
Linq
List
C# 4.0
How to view LINQ Generated SQL statements?
Linq
Is there way to use Distinct in LINQ query syntax?
C#
Linq
Why does IEnumerable<T>.ToList<T>() return List<T> instead of IList<T>?
C#
Linq
Interface
Ienumerable
How to add an item to a Mock DbSet (using Moq)
C#
Linq
Moq
Dbset
Can I specify my explicit type comparator inline?
C#
.Net
Linq
Lambda
Extension methods syntax vs query syntax
C#
.Net
Linq
Extension Methods
Linq Query-Syntax
LINQ to SQL using GROUP BY and COUNT(DISTINCT)
C#
Linq
Linq to-Sql
Best way to remove multiple items matching a predicate from a .NET Dictionary?
C#
.Net
Linq
Collections
Dictionary
Why use .AsEnumerable() rather than casting to IEnumerable<T>?
C#
Linq
Ienumerable
Remove duplicates in the list using linq
C#
Linq
Linq to-Objects
Generic List
Select parsed int, if string was parseable to int
C#
Linq
Int
List<T> Any or Count?
C#
Linq
C# 4.0
Error: "The specified LINQ expression contains references to queries that are associated with different contexts"
C#
Entity Framework
Linq
Edmx
Entity Framework (.NET Full Framework) Ordering Includes
C#
Linq
Entity Framework
Entity Framework-5
AsNoTracking() and Include
C#
Entity Framework
Linq
How can I do an OrderBy with a dynamic string parameter?
Linq
Sql Order-By
Should LINQ be avoided because it's slow?
C#
.Net
Linq
Performance
OData "where ID in list" query
Linq
Collections
Filter
Odata
How do I iterate an IGrouping<T> Interface?
C#
Linq
How to use union all in LINQ?
Linq
Linq to-Sql
Union
LINQ to find array indexes of a value
C#
Linq
LINQ, Unable to create a constant value of type XXX. Only primitive types or enumeration types are supported in this context
C#
Entity Framework
Linq
How to get first object out from List<Object> using Linq
C#
.Net
List
Linq
C# 4.0
Update records using LINQ
C#
Linq
Entity Framework
Convert IAsyncEnumerable to List
C#
Linq
Ienumerable
C# 8.0
Iasyncenumerable
Make NameValueCollection accessible to LINQ Query
.Net
Linq
Namevaluecollection
System.Data.Linq.ChangeConflictException: Row not found or changed
C#
.Net
Linq
Is there a good LINQ way to do a cartesian product?
C#
Sql
asp.net
Linq
Cartesian Product
Return list using select new in LINQ
C#
Linq
Change some value inside the List<T>
C#
Linq
Lambda
Expression
Purpose of EF 6.x DbContext Generator option when adding a new data item in Visual Studio
C#
asp.net
Entity Framework
Linq
Linq to-Sql
How to write Asynchronous LINQ query?
C#
Linq
Linq to-Sql
Asynchronous
How does LINQPad reference other classes, e.g. Books in the LINQ in Action samples
C#
Linq
Linq to-Objects
Linqpad
LINQ extension methods - Any() vs. Where() vs. Exists()
C#
Linq
LINQ to Entities does not recognize the method Int32 get_Item(Int32)
.Net
Linq
Entity Framework
Updating an item property within IEnumerable but the property doesn't stay set?
C#
Linq
Why does this method result in an infinite loop?
C#
Linq
Stack Overflow
Infinite Loop
Why does Enumerable.Single() iterate all elements, even when more than one item has already been found?
C#
Linq
.Net 4.0
Remove Item in Dictionary based on Value
C#
.Net
Linq
Dictionary
call a function for each value in a generic c# collection
C#
Linq
Lambda
Generics
Sum of TimeSpans in C#
C#
Linq
Timespan
C# Linq Where(expression).FirstorDefault() vs .FirstOrDefault(expression)
C#
Linq
Serialize an object to XElement and Deserialize it in memory
C#
Xml
Linq
Serialization
C# 4.0
LINQ: combining join and group by
C#
Linq
Linq to-Sql
Join
Group By
How to make IEnumerable<string>.Contains case-insensitive?
.Net
Arrays
String
Linq
LINQ : Dynamic select
C#
Linq
Dynamic Linq
Can LINQ be used in PowerShell?
Linq
Powershell
FindAsync and Include LINQ statements
C#
Linq
Entity Framework-6
Introduction to C# list comprehensions
C#
Linq
How do you add an index field to Linq results
C#
Linq
How LINQ works internally?
Linq
Is there a built-in way to convert IEnumerator to IEnumerable
C#
.Net
Linq
Why use AsQueryable() instead of List()?
C#
Linq
Repository
Iqueryable
What Sorting Algorithm Is Used By LINQ "OrderBy"?
Linq
Algorithm
Sorting
Quicksort
Am I misunderstanding LINQ to SQL .AsEnumerable()?
C#
.Net
Linq
Linq to-Sql
LINQ - selecting second item in IEnumerable
C#
Linq
.Net 3.5
C# 3.0
linq: order by random
C#
Linq
Random
How would you do a "not in" query with LINQ?
C#
Linq
LINQ on the .NET 2.0 Runtime
.Net
Linq
.Net 3.5
.Net 2.0
Clr
Hitting the 2100 parameter limit (SQL Server) when using Contains()
Sql Server
Linq
Parameters
Limit
Deserializing JSON to .NET object using Newtonsoft (or LINQ to JSON maybe?)
C#
Json
Linq
json.net
Deserialization
Better way to sort array in descending order
C#
Linq
Sorting
LINQ - Query syntax vs method chains & lambda
C#
.Net
Linq
Lambda
Linq Query-Syntax
The LINQ expression node type 'ArrayIndex' is not supported in LINQ to Entities
C#
Arrays
Linq
Entity Framework
Linq to-Entities
LINQ to SQL multiple tables left outer join
C#
Mysql
Sql
Linq
Entity Framework
Dynamic query with OR conditions in Entity Framework
C#
Sql Server
Entity Framework
Linq
Linq to-Entities
How do I concatenate two arrays in C#?
C#
Arrays
.Net
Linq
Entity Framework. Delete all rows in table
C#
Sql
Linq
Entity Framework
LINQ: Dot Notation vs Query Expression
Linq
.Net 3.5
Lambda
Can I have an incrementing count variable in LINQ?
Linq
Linqpad
What is the linq equivalent to the SQL IN operator
Sql
Linq
Contains
How to perform .Max() on a property of all objects in a collection and return the object with maximum value
C#
Linq
Object
Max
How do you perform a left outer join using linq extension methods
C#
Linq
Left Join
How to SELECT WHERE NOT EXIST using LINQ?
C#
Sql
Linq
Entity Framework
How to find item with max value using linq?
C#
Linq
Max
Comparing two string arrays in C#
C#
.Net
String
Linq
Equality
LINQ with SQLite (linqtosql)
Linq
Linq to-Sql
Sqlite
Convert / Cast IEnumerable to IEnumerable<T>
C#
Linq
How to Append to an expression
C#
.Net
Linq
How do I convert multiple inner joins in SQL to LINQ?
C#
Linq
Linq to-Sql
Inner Join
LINQ Max() with Nulls
C#
Linq
What is difference between .edmx and .dbml file in linq?
Linq
Linq to-Sql
Entity Framework
Linq to-Entities
What is the Linq.First equivalent in PowerShell?
C#
Linq
Powershell
Lambda
LINQ - Find all items in one list that aren't in another list
C#
.Net
Linq
.Net 3.5
Return list of specific property of object using linq
C#
.Net
Linq
Linq Query-Syntax
Equivalent to LINQ's Enumerable.First(predicate)
Javascript
Arrays
node.js
Linq
Filter
Using Linq to get the last N elements of a collection?
C#
Linq
Entity-framework code is slow when using Include() many times
C#
Sql Server
Entity Framework
Linq
Iframe
How are people unit testing code that uses Linq to SQL
Linq
Unit Testing
Linq to-Sql
Will using LINQ to SQL help prevent SQL injection
C#
asp.net
Linq
Linq to-Sql
Get List<> element position in c# using LINQ
C#
.Net
Linq
.Net Core
Position
Reading a file line by line in C#
C#
Linq
Line
LINQ: Passing lambda expression as parameter to be executed and returned by method
C#
Linq
The data source does not support server-side data paging
C#
asp.net
Linq
Sorting
Gridview
Is LINQ to SQL deprecated?
Linq
Linq to-Sql
Linq to-Entities
Is there something in PHP equivalent to LINQ in C#?
Php
Linq
Language Comparisons
Add items to a collection if the collection does NOT already contain it by comparing a property of the items?
C#
Linq
Collections
Contains
Filter Linq EXCEPT on properties
C#
Linq