Stop the .NET Firebird Provider (2.6.5) Writing All SQL for the Console

The new .NET Firebird provider writes ALL SQL to the console, which slows down the execution of our program in Visual Studio. We use NHibernate and track all SQL commands using the NHibernate Profiler.

Here is a link to a new logging function in the .NET provider.
http://blog.cincura.net/232387-improved-command-logging-in-ado-net-provider-for-firebird/

Is it possible to disable SQL logging on the console, but save all the other entries?

Using Visual Studio 2010

+4
source share
2 answers

You can see the solution in a subsequent message . Basically, just remove all listeners (in Visual Studio, by default, one is added that places messages in the output window).

+2
source

Have you considered recompiling the source code?

If so, find the LogCommand method in FBCommand.cs

0
source

All Articles