LinqPad Not Returning Results With C# Statements

It's late, so this must be something stupid. I have LinqPad connected up to my database and cannot seem to get results for the simplest of queries.

var q = from app in AppInstances
 select new {
 AppId = app.AppId
 };

When I run that, LinqPad says that it executed successfully (C#Statement mode). Nothing is retured.

I can write the following very simple Lambda (C# expression mode):

AppInstances.Select (p => p.AppId)

And that works. Why? I would prefer to use the non-lambda query building functionality. I am sure that this is something all together silly.

42
задан Brandon Watson 15 December 2010 в 08:54
поделиться