How to Use LINQ to Get a Count of Duplicates in a List

Often we have to get a count of duplicate items in a list. An easy way to do this is to group the list on the property we want to count, then use LINQ's GroupBy's Count feature. Below is a quick example using an employee list.   private static void Main() {     List<Employee> empList [...]

Share

Read Users' Comments (0)

Using LINQ to SQL with SQL Server Compact

In this article, I will cover how to access data in SQL Server Compact databases (.sdf file) using new development technologies such as LINQ. LINQ is the new initiative of Microsoft to support Object-Relational Mapping concepts and design patterns. LINQ provides a full type-safety and compile-time checking of query expressions in order to minimize the [...]

Share

Read Users' Comments (0)