Home

Lambda tab empty on simple query

I can see the lambda tab populated after executing LINQ to SQL queries. But it remains empty after executing a query such as "A simple query expression" in "LINQPad 5 minute induction". Shouldn't it display the query in method syntax in this case as well?

Comments

  • No, you need to ensure you're using IQueryable extensions to get the lambda tab to work. I.e. add .AsQueryable() to the end of the in clause.
  • edited June 2016
    Great, thank you. Yes, it is clear that one needs to have IQueryable in order for the lambda tab to show something. I was kind of assuming that by using the query syntax, this is always done automatically. But it was a wrong assumption...
Sign In or Register to comment.