Is it possible to intercept a query to a DB from the EF in the EF version which is lower than the 6?
According to the documentation over here the interception is only possible in EF6, is it so?
Is it possible to intercept a query to a DB from the EF in the EF version which is lower than the 6?
According to the documentation over here the interception is only possible in EF6, is it so?
As an alternatvie you could use extended event session to track issued queries. It is purely database solution and it is indepenedent of your application code.
Extended Events is a lightweight performance monitoring system that uses minimal performance resources. Extended Events provides two graphical user interfaces to create, modify, display, and analyze your session data.
More info: Quicstart: Extended events in SQL Server