I am developing an ASP.NET page and am using LINQ to work with MS SQL Server. I am fine with basic SQL, but I am much better off developing queries using LINQ. I know they are similar, but it’s easier for me to develop complex queries in LINQ. My question is this: is there a way to design a query in LINQ and then get the SQL that it generated? I would like to embed SQL in a stored procedure, since several pages (out of my control) will have to make the same query.
source
share