次のコードの最後の行は、例外をトリガーします。 OracleConnection conn = new OracleConnection(getConnectionString());
// A SqlConnection, SqliteConnection ... or whatever
// wrap the connection with a profiling connection that tracks timings
var cnn = MvcMiniProfiler.Data.ProfiledDbConnection.Get(conn, MiniProfiler.Current);
OracleCommand cmd = new OracleCommand(sql, (OracleConnection) cnn);
それは次のとおりです。
Unable to cast object of type 'MvcMiniProfiler.Data.ProfiledDbConnection' to type 'Oracle.DataAccess.Client.OracleConnection'.
Oracle Data Provider を使用しています。オラクルのdevArtでも同じことが起こります。
ありがとう :)