entity-framework - DataContext.Log 在 Entity Framework 中等效?

标签 entity-framework logging

在 Link-2-SQL 中,我可以使用 DataContext.Log属性以查看抛出到 SQL Server 的确切查询。

Entity Framework 中是否有与此等效的东西?

最佳答案

关于entity-framework - DataContext.Log 在 Entity Framework 中等效?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1401587/

相关文章:

c# - Entity Framework - 如何在种子方法中获取相对文件路径

java - Log4j2 文件包含 : <include> and <included> similar to Logback

c# - 如何在 UWP 应用程序中通过 log4net 配置日志记录

.net - 将 Entity Framework 4.0 与 WCF 4.0 结合使用时出现 DataContractSerializer 错误

c# - 将 MySql 与 ASP.NET MVC 结合使用( Entity Framework 6)

c# - 在 Entity Framework 中保存编辑的对象

python - 跨多个文件共享 Python 记录器

postgresql - 如何配置 postgresql 不记录插入数据库的实际数据?

ios - 启动屏幕后,iOS App崩溃。对崩溃日志有帮助吗?

c# - Entity Framework : Separation of concerns