It would be great to specify a logger either globally, or for a specific stored procedure. Could be done with a new logger interface. Need Begin, Finish, Exception methods. Would probably take an IDbCommand as an argument, and perhaps the result set in the Finish method. The Exception method would quite clearly take the Exception that was thrown.
It would be great to specify a logger either globally, or for a specific stored procedure. Could be done with a new logger interface. Need
Begin
,Finish
,Exception
methods. Would probably take anIDbCommand
as an argument, and perhaps the result set in theFinish
method. TheException
method would quite clearly take theException
that was thrown.