How can I see the SQL that is created from a LINQ to SQL query? The obvious answer is to open up the SQL profiler and look at it there. Is there a way in VS?
Maybe there is a VS add-on like a visualizer that allows you to hover over the DataContext to view the SQL.
Yes, you can evaluate:
You can also see this string in the debugger in Visual Studio when you examine the query variable. You don’t need a plugin.
Note that it’s a property of the query, not the DataContext.