Is it possible to log to an XML column in SQL Server using the AdoNetAppender in log4net?
I know that I can treat the column as a string and log that way through:
<parameter>
<parameterName value="@details" />
<dbType value="String" />
<size value="4000" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%property{Details}" />
</layout>
</parameter>
But, I'd rather log using:
<parameter>
<parameterName value="@details" />
<dbType value="Xml" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%property{Details}" />
</layout>
</parameter>
Unfortunately, that doesn't seem to work.
I'd much rather do the logging using the actual database type instead of taking advantage of the fact that I could just use string.