配置文件EF查询 [英] Profile EF queries

查看:72
本文介绍了配置文件EF查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法用EF CTP 5跟踪查询并可能对它们进行分析?

解决方案

Chad,


<我不确定性能分析,但你可以在DbSet和DbQuery(以及你的LINQ查询)上使用ToString()方法来查看生成的SQL。 您可能还想查看EFprof( http://efprof.com/ )。 
我自己没有用过它,但我听说过它很好。


谢谢,

Arthur


Is there any way with EF CTP 5 to trace queries and potentially profile them?

解决方案

Chad,

I'm not sure about the profiling, but you can use the ToString() method on DbSet and DbQuery (and therefore your LINQ query) to look at the SQL that is generated.  You might also want to look at EFprof (http://efprof.com/).  I haven't used it myself, but I have heard good things about it.

Thanks,
Arthur


这篇关于配置文件EF查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆