The ASP.NET MVC Mini Profiler looks awesome, but I don't get the Linq 2 SQL usage example.
This is the Linq2SQL example from the profiler documentation:
partial class DBContext
{
public static DBContext Get()
{
var conn = ProfiledDbConnection.Get(GetConnection());
return new DBContext(conn);
// or: return DataContextUtils.CreateDataContext<DBContext>(conn);
}
}
How do I use this in my actual application? I would have expected some kind of wrapper around my DataContext, but this seems to work in a different way. I don't even know where that that "GetConnection()" method from the example is defined.
Thanks,
Adrian