Entity Framework DbContext Connection Output

How do I suppress all the debugging info in the Output window?
dbug: 08/10/2021 08:42:46.339 ...

Comments

  • Are you connecting to a custom assembly? If so, it's likely that something in that assembly or a library that it calls is writing to the debug output.

    You can work around this in LINQPad by clearing the trace listeners:

    Trace.Listeners.Clear();
    
  • Thanks for the reply Joe, I'll check the custom assembly.
    I tried the Trace.Listeners.Clear(); but it didn't work.