
c# - What is LINQ and what does it do? - Stack Overflow
LINQ is a technology for extracting data using an idiom derived from the C# programming language. While it owes much in functional design to SQL, it is fundamentally its own data querying language.
c# - LINQ's Distinct () on a particular property - Stack Overflow
Jan 29, 2009 · LINQ-Like has nothing to do with preference, being "LINQ-like" has to do with looking like a different query language being embedded into C#, I prefer the fluent interface, coming from java …
c# - Update all objects in a collection using LINQ - Stack Overflow
Dec 30, 2008 · Is there a way to do the following using LINQ? foreach (var c in collection) { c.PropertyToSet = value; } To clarify, I want to iterate through each object in a collection and then …
How to use LINQ Distinct() with multiple fields - Stack Overflow
How to use LINQ Distinct () with multiple fields Asked 13 years, 6 months ago Modified 3 years, 1 month ago Viewed 281k times
c# - If Else in LINQ - Stack Overflow
Jan 14, 2009 · Is it possible to use If Else conditional in a LINQ query? Something like from p in db.products if p.price>0 select new { Owner=from q in db.Users select q.Name } else select new {
c# - How to get index using LINQ? - Stack Overflow
Mar 18, 2010 · 481 This question already has answers here: Get List<> element position in c# using LINQ (11 answers) How to get the index of an element in an IEnumerable? (14 answers)
c# - How to group by multiple columns using LINQ - Stack Overflow
How can I do group by multiple columns in LINQ? Something similar to this in SQL: SELECT * FROM <TableName> GROUP BY <Column1>,<Column2> How can I convert this to LINQ:
c# - Group by in LINQ - Stack Overflow
The closest I could get using LINQ was IEnumerable <IGrouping <PersonIdInt, Dictionary <CarNameString, PersonIdCarNameXrefClass>>>. I ended using your for loop method which, btw, …
c# - LIKE operator in LINQ - Stack Overflow
Mar 21, 2011 · Is there any way to compare strings in a C# LINQ expression similar to SQL's LIKE operator? Suppose I have a string list. On this list I want to search a string. In SQL, I could write: …
c# - LINQ query on a DataTable - Stack Overflow
Aug 14, 2008 · I'm trying to perform a LINQ query on a DataTable object and bizarrely I am finding that performing such queries on DataTables is not straightforward. For example: var results = from …