I found better way of doing this:
Here is my config file:
It works !
Stephen Murtagh wrote:
>
> I had a similar problem about a year back, ended up subclassing
> AdoNetAppenderParameter and overriding the FormatValue method as below
Thank you so much, but how can I set the type of the parameter ?
Here is my cofig file:
Where should I add MyAdoNetAppenderParameter ?
Stephen Murtagh wrote:
>
> I had a similar problem about a year back, ended up subclassing
> AdoNetAppenderParamet
I had a similar problem about a year back, ended up subclassing
AdoNetAppenderParameter and overriding the FormatValue method as below:
public class MyAdoNetAppenderParameter : AdoNetAppenderParameter
{
///
/// Custom version of FormatValue method which also converts NullText
value (null)
Hello. Help me please.
I'm using AdoNetAppender. How can I pass NULL value into stored procedure ?
Here is my code:
...
ThreadContext.Properties["ProcessID"] = DbNull.Value;
log.Debug(message);
Config-file:
What's wro