Closed honzakuzel1989 closed 3 years ago
In general, I agree and I prefer to avoid reflection, but in this implementation it creates several duplicate lines. Another approach could be to refactor and extract the common code, but, as it is, this PR doubles up the expression casting and SqlMapper check.
Make specific SetupDapperAsync function with Task return value and split SetupDapperAsync's switch.