阅读背景:

有没有办法获取LINQ查询创建的SQL?

来源:互联网 

I've been developing a ASP.NET page and have been using LINQ to handle talking to MS SQL server. I'm ok at basic SQL, however I'm a lot better with designing queries using LINQ. I know they are similar but I find it easer to design 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 the SQL in a stored procedure since multiple pages (outside my control) will need to do the same query.I've been developing a ASP.NET page and have be




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: