从Linq查看生成的SQL [英] View generated SQL from Linq
本文介绍了从Linq查看生成的SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对EF 4中生成的sql有疑问。
这是我的代码:
Dim actie As KEU_bg_Acties
Dim acties = From a In m_DataAccessSqlServer.KEU_bg_Acties
Where a.Id = ActieToUpdate.Id
'm_DataAccessSqlServer = edmx
解决方案
有多种选择,Julie Lerman总结了各种此MSDN杂志文章中的选项: http://msdn.microsoft.com/en-us/magazine /gg490349.aspx
Hi,
I have a question about the generated sql in EF 4.
This is my code:
Dim actie As KEU_bg_Acties Dim acties = From a In m_DataAccessSqlServer.KEU_bg_Acties Where a.Id = ActieToUpdate.Id' m_DataAccessSqlServer = edmx
解决方案There are multiple options, Julie Lerman has summarized the various options in this MSDN Magazine article: http://msdn.microsoft.com/en-us/magazine/gg490349.aspx
这篇关于从Linq查看生成的SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取
|
15天全站免登陆