How can I quickly remove all rows in the table using Entity Framework? I am currently using: var rows = from o
I have two collections which have property Email in both collections. I need to get a list of the items in the
I know there are a few posts about Newtonsoft so hopefully this isn't exactly a repeat...I'm trying
I have a class Items with properties (Id, Name, Code, Price). The List of Items is populated with duplicated
I have a question about LINQ query. Normally a query returns a IEnumerable<T> type. If the return is emp
I have a LINQ query which returns IEnumerable<List<int>> but i want to return only List<int>
What is the most efficient way to write the old-school: StringBuilder sb = new StringBuilder(); if (strings.C
I want to add some rows to a database using Linq to SQL, but I want to make a "custom check" before adding the
Using LINQ, from a List<int>, how can I retrieve a list that contains entries repeated more than once an
Using LINQ on collections, what is the difference between the following lines of code? if(!coll.Any(i => i
I'm sure this will be a relatively simple one. I have a LINQ query that I want to order by the most rece
I have a Person object with a Nullable DateOfBirth property. Is there a way to use LINQ to query a list of Pe
Is there a better way to get the Property name when passed in via a lambda expression? Here is what i currentl
I often run into the case where I want to eval a query right where I declare it. This is usually because I nee
How to perform left outer join in C# LINQ to objects without using join-on-equals-into clauses? Is there any w
Is there any easy LINQ expression to concatenate my entire List<string> collection items to a single str
I would assume there's a simple LINQ query to do this, I'm just not exactly sure how. Given this pi