Last post Sep 11, 2014 12:17 PM by ossprologix
Sep 11, 2014 08:15 AM|ossprologix|LINK
EF translates to SQL when it actually does ADO operations.
Is it possible to intercept translated SQL within DbContext's entities and not making any ADO operations
Persons.Count() translates to SELECT COUNT(*) from persons
I don't want EF to be chatty with SQLServer but only dump me SQL .
Thanks in advance
Sep 11, 2014 08:43 AM|Mikesdotnetting|LINK
You can do this in EF 6 using the logging and interception tools that were added: http://msdn.microsoft.com/en-gb/data/dn469464.aspx
Sep 11, 2014 12:17 PM|ossprologix|LINK