I am trying to pass in a custom IDbConnection implementation into DbContext.
I cannot inherit from the abstract class DbConnection, because I need the functionality in the SqlConnection class.
I cannot inherit from SqlConnection, because the class is sealed.
I have a class that uses an SqlConnection internally through composition, and implements the IDbConnection interface so it can be used.
Does anybody know why the DbContext constructor does not accept the interface IDbConnection?
Isn't it bad practice to accept the concrete class when an interface is available?
Jamie.