The error message says that `SqlConnection()` returns a `SqlConnection` but you are trying to assign to a `IDbConnection`. So, either make a case to a `IDbConnection` or change `dbcon` to be a `SqlConnection `.
↧