By dotCore
via dotnet.dzone.com
Published: Feb 13 2013 / 01:40
There are times when you want to retrieve only the ID(distinct) and the name from the database table using LINQ . In scenarios like this , one can use the ToDictionary method to place the necessary properties to the dictionary and return them.
Add your comment