I am trying to integrate mvc-mini-profiler to asp.net mvc application with Llblgen used for data access. I have tried to override llblgen's CommonDaoBase.CreateConnection:
public override DbConnection CreateConnection(string connectionString)
{
return MvcMiniProfiler.Data.ProfiledDbConnection.Get(base.CreateConnection(connectionString));
}
but this resulted in exception, saying 'Cannot cast to SqlConnection...'. Has someone got mvc-mini-profiler working with llblgen?
Miha Markic just posted the answer in his blog: http://blog.rthand.com/post/2011/07/24/Integrating-MvcMiniProfiler-and-LLBLGenPro.aspx