Friday, 18 May 2012

LINQ to dictionary

In the latest story, I wanted to list received manuscripts in deadline ascending order so that the user could prioritise their work.  As the deadline field is part of the job entity, it wasn't as simple as just fetching a list of manuscripts.  In needed the LINQ to return a dictionary of manuscript and deadline key pairs. Here is an article that I found that shows how this can be done:

http://stackoverflow.com/questions/245168/linq-to-sql-todictionary


No comments:

Post a Comment