Retrieves a profiling wrapped EntityConnection. Call from the ObjectContext constructor.
Namespace: HuagatiEFProfilerAssembly: HuagatiEFProfiler (in HuagatiEFProfiler.dll) Version: 1.33.3996.16092
Syntax
Return Value
An EntityConnection instance
Examples
CopyC#
public AdventureWorksEntities(bool enableProfiling, string connectionString)
: this(HuagatiEFProfiler.EFProfiler.GetConnection(enableProfiling, connectionString))
{
string profilerOutput = System.IO.Path.Combine(System.Environment.GetFolderPath(Environment.SpecialFolder.Personal), @"L2SProfiler\Samples");
_profiler = new HuagatiEFProfiler.EFProfiler(this, profilerOutput, null, HuagatiEFProfiler.ExecutionPlanMode.Actual, false);
}
See Also