Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个使用实体框架的项目。我想运行 SQL Server Profiler 来查看对数据库进行了多少调用。我已经启用了几乎所有可能跟踪的不同事件,但我仍然没有看到被触发的事件。
我在网上搜索过,似乎可以购买一些工具。
我发现了这个问题。我假设 Entity Framework 在 Web 应用程序启动时加载了所有实体。我必须先调用一个实体才能显示查询。