half-ogre / dapper-wrapper

A simple abstraction atop the Dapper extension methods and TransactionScope for testability.
MIT License
70 stars 35 forks source link

Allow injection of IDbConnection instead of SqlConnection #1

Closed davidduffett closed 12 years ago

davidduffett commented 12 years ago

By only accepting SqlConnection I cannot use this with, for example, the MiniProfiler ProfiledDbConnection (which derives from DbConnection).

It would be better to take in IDbConnection so other types of connections can be used.

davidduffett commented 12 years ago

Sigh. It's been a long day.