I am trying to use the mvc-mini-profiler with MVC3 and keep getting the following error
Unable to determine the provider name for connection of type 'MvcMiniProfiler.Data.ProfiledDbConnection'
Below is the code that I am using to try and instatiate my Context.
DbConnection conn = new MySqlConnection(
ConfigurationManager.ConnectionStrings["ConnString"].ConnectionString);
var profiledConnection = MvcMiniProfiler.Data.ProfiledDbConnection.Get(conn);
return new DB(profiledConnection);
And here is the DB Context Class.
public class DB:DbContext, Stats.Data.IDB
{
public DB(DbConnection conn)
: base(conn, true)
{
}...