Trace is long obsolete, new applications should use TraceSource. Any library can spam global Trace with any messages it wants, so using it to receive SQL code is very unreliable. Library should instead declare it's own TraceSource (this singleton should be public) which will automatically read configuration, apply listeners etc.
Trace
is long obsolete, new applications should useTraceSource
. Any library can spam globalTrace
with any messages it wants, so using it to receive SQL code is very unreliable. Library should instead declare it's ownTraceSource
(this singleton should be public) which will automatically read configuration, apply listeners etc.