daenetCorporation/Daenet.Common.Logging.Sql

Scope improvements

hvetter-de opened this issue · 1 comments

We want to make improvements to the scope.
In many applications we have an ActivityId, this ActivityIds needs to be saved in an own column.

The user can pass a Dictionary<string, object> to the BeginScope method.
This is saved to the scope, when the Logger logs we iterate trough the scope and just .ToString() the value.
We need to add a check here if we are dealing with a dictionary.
If we are dealing with a dictionary following should happen:

  • Map Keys to the columns and insert the value

Implemented in b8263d0