是否可以从代码中查看为插入/更新生成的 SQL?
我通过代码需要它,因为我使用的数据库不允许显示 SQL 查询。
最佳答案
获取 Entity Framework 分析器的演示
Entity Framework 分析器 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
关于c# - 显示 Entity Framework 为插入/更新生成的 SQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4366950/