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 Profiler 或 EF Profiler。有没有办法使用 EF 4.1 针对 SQL Server CE 数据库跟踪以下语句的 SQL?
int count = context.Customers.Count();
尽管每个受支持的数据库后端通常都提供自己的跟踪方法,但 Entity Framework 实际上有自己的内置跟踪例程,其使用取决于您是否使用 Code First。我向您推荐以下 SO 问题以获取更多详细信息:
实体框架 4.1 - EFTracingProvider