How do I correctly profile Entity Framework?

前端 未结 4 2116
我寻月下人不归
我寻月下人不归 2020-12-25 13:09

What is the minimal amount of code I can write to get a single callback from EF 4.1 that provides the following:

  • OnSQLExecuted(DbCommand cmd, DateTime s
4条回答
  •  长发绾君心
    2020-12-25 14:07

    I can recommend Entity Framework Profiler and Monthly subscription is suitable for you need with minimum cost $16 US per monthly. We had some performance issues with DbContext and it provided good visual information to fix those. you can integrate EF profiler with your continuous integration server and keep improve your performance.

    http://efprof.com/

提交回复
热议问题