I know this is possible in Linq-to-Sql, is it possible to automatically log all queries made through a particular ObjectContext in entity framework? In particular, I’m interested in the number of queries that are run in the lifetime of the ObjectContext.
Share
You can use ObjectQuery.ToTraceString or look into Jaroslaw Kowalski’s tracing and caching provider