Requires a ‘mature’ dependency injection container. Please refer to Advanced for more information
Dapper extensions are designed to make it easier to work with Dapper and Shiny Mediator. Like our HTTP extensions, we wanted to reduce
boilerplate while exposing all of the mediator middleware while still keeping the full power of Dapper available. To accomplish this, we’ve also
added InterpolatedSql to make it easier to work with SQL strings.
Setup
Install the package
Register in your Shiny Mediator startup call
Start making calls as shown below
How to use it
Unlike other extensions, Dapper doesn’t require you create any handlers or contracts, simply make one of the 3 available contract calls
Dynamic Connections
There will be cases where you may need to connect to different databases that may even be different platforms. The initial setup shown above is designed for a single database on a single platform.
You didn’t think we would lock you in like that though did you?