Created three new methods to get inserted, updated and deleted values without a separate query: InsertOutputAsync, UpdateOutputAsync, and DeleteOutputAsync.
Update and delete were easy to alter to output stuff, but with insert it was necessary to change object parameters to Map parameters. Otherwise dapper throws an exception when the function is called.
Also noticed a bug where parameters to dapper are given in a Map. If one provided any Some 'a value to dapper in that Map, dapper would throw an "Implicit conversion from data type sql_variant to is not allowed". The added boxify function solves that problem.
Also, sorry, I probably should have done a separate PR for this, but at least these changes are in a separate commit. Removed trailing whitespaces and added .editorconfig file to help keep the files tidy. The editor config should change nothing in your setup except for the trailing spaces.
Created three new methods to get inserted, updated and deleted values without a separate query: InsertOutputAsync, UpdateOutputAsync, and DeleteOutputAsync.
Update and delete were easy to alter to output stuff, but with insert it was necessary to change object parameters to Map parameters. Otherwise dapper throws an exception when the function is called.
Also noticed a bug where parameters to dapper are given in a Map. If one provided any Some 'a value to dapper in that Map, dapper would throw an "Implicit conversion from data type sql_variant to is not allowed". The added boxify function solves that problem.
Also, sorry, I probably should have done a separate PR for this, but at least these changes are in a separate commit. Removed trailing whitespaces and added .editorconfig file to help keep the files tidy. The editor config should change nothing in your setup except for the trailing spaces.