Page 1 of 1

Trace SQL Command Execution with .NET EF Core

Posted: Wed 01 Mar 2017 19:41
by palmi
Hi Support,

I was wondering if there is a way to use the second optional parameter of the UseOracle() method for ASP .NET Core (Action<OracleDbContextOptionsBuilder>) to trace and log each executed SQL command?
I haven't found any example how to accomplish this.

Thank you

Re: Trace SQL Command Execution with .NET EF Core

Posted: Mon 06 Mar 2017 14:40
by Shalex
There are two ways for logging SQL statements:
1) EF Core specific -> https://docs.microsoft.com/en-us/ef/cor ... us/logging
2) provider specific -> https://www.devart.com/dotconnect/oracl ... nitor.html