There’s a much easier solution now in a similar question, but it is about
This must be applied before any database call like
You can put it in your
Startup class, or any place that runs on
Startup to configure data access.
SqlMapper is a
static class and changes apply to all calls.