I\'m trying to get NLog to write to a database, however with my current code it throws an exception when I attempt to debug, the exception is: The type initializer for \'Not
A simple example,
Config:
INSERT INTO NLogEntries ([Origin], [Message], [LogLevel],[CreatedOn],[OrderId]) VALUES (@Origin,@Message,@LogLevel,@Date, @OrderId);
Note, NLog 4.6 has also support for DbType - See https://nlog-project.org/2019/03/20/nlog-4-6-is-live.html