How can I quickly remove all rows in the table using Entity Framework? I am currently using: var rows = from o
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
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
What is the difference between IQueryable<T> and IEnumerable<T>? See also What's the differe
I'm sure this will be a relatively simple one. I have a LINQ query that I want to order by the most rece
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
in the System.Linq namespace, we can now extend our IEnumerable's to have the Any() and Count() extension
I have some doubts over how Enumerators work, and LINQ. Consider these two simple selects: List<Animal>
I'd like to do the equivalent of the following in LINQ, but I can't figure out how: IEnumerable<
Let's suppose if we have a class like: class Person { internal int PersonID; internal string c
What is the difference between returning IQueryable<T> vs. IEnumerable<T>, when should one be pref
I have two tables, movies and categories, and I want to get an ordered list by categoryID first and then by Na