LINQ issue sorted

The answer to my LINQ query turned out to be pretty simple in the end – all I needed to do was run my query against a list. I.e.:

args.Result = from userimage in db.UserImages

becomes

args.Result = from userimage in db.UserImages.ToList()

(Thanks Blair!)

Tags:
Posted on Thursday, June 12, 2008 10:14 PM |

Like this? Share it!

No comments posted yet.

Post a comment
Please add 4 and 1 and type the answer here:
Remember me?
Ensure the word in this box says 'orange':