yodeski / mvc-mini-profiler

Automatically exported from code.google.com/p/mvc-mini-profiler
0 stars 0 forks source link

Single query displayed as duplicate on mini-profiler #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I used following code to profile linq2sql:

var ctx=new DbLocalDataContext();
cnn = new SqlConnection(ctx.Connection.ConnectionString);
conn = new ProfiledDbConnection(new ProfiledDbConnection(cnn, 
MiniProfiler.Current), MiniProfiler.Current);
ctx = new DbLocalDataContext(conn);
var tests=ctx.Tests.ToList();

What is the expected output? What do you see instead?
Sql server profiler shows only one query being fired but mini profiler shows 
two queries fired and displays as duplicate (screen shot attached)

What version of the product are you using? On what operating system?
1.9.0.0 / Win2K8 / IIS 7 / SQL 2008 R2

Original issue reported on code.google.com by narendra...@gmail.com on 12 Dec 2011 at 7:13

GoogleCodeExporter commented 9 years ago
it this even a valid use case? why are you double wrapping a profiled 
connection? 

Original comment by sam.saff...@gmail.com on 23 Jan 2012 at 5:38

GoogleCodeExporter commented 9 years ago
I don't consider this valid, double wrapping is misusing the library 

Original comment by sam.saff...@gmail.com on 14 Feb 2012 at 4:50