I need to make a general logger to write specific insert / update instructions so that my testers can verify the correctness of the inserted data.
My first thought was that I would just use a function that accepts DynamicParameters, and I would suggest creating a line through DynamicParameters to display the name and value of the parameter and make them more readable for testers.
Unfortunately, Dapper.DynamicParameters does not contain a public definition for "GetEnumerator"
Here is a basic example of what I was hoping to do:
string myFormattedListofParameters = ""; foreach (var p in myDynamicParameters) { myFormattedListofParameters += p.Name + "=" + p.Value.ToString(); }
dapper
SLoret
source share