显示实体框架为插入/更新生成的SQL

时间:2010-12-06 13:40:09

标签: c# entity-framework-4 entity

是否可以从代码中查看生成的SQL以进行插入/更新? 我需要代码,因为我使用的数据库不允许显示SQL查询。

1 个答案:

答案 0 :(得分:3)

获取实体框架分析器的演示

Entity Framework Profiler http://efprof.com/

也许这可能会有所帮助.. http://blog.cincura.net/227674-how-to-show-sql-command-created-by-entity-framework/

这个问题也可能对你有所帮助...... Best way to show the SQL trace of a LINQ query to Entity Framework 3.5