See the SQL Generated by LINQ [Tip/Trick]
Posted: 26 Feb 2010
Updated: 26 Feb 2010
Rating: 5.00/5
Votes: 28
Popularity: 7.24
Licence: The Code Project Open License (CPOL)
Bookmarked: 27
Downloaded: 0
When using LINQ to SQL, it can be very useful to see the SQL commands that are generated by your LINQ expressions. Sometimes the results are surprising and you might be able to improve performance by tweaking the LINQ.All you have to do is set the Log property of the DataContext object. ...