Constructor for the EFProfiler
Namespace: HuagatiEFProfilerAssembly: HuagatiEFProfiler (in HuagatiEFProfiler.dll) Version: 1.33.3996.16092
Syntax
C# |
---|
public EFProfiler( ObjectContext oc, string outputPath, ProfilerFilter filter, ExecutionPlanMode executionPlanMode, bool asyncLogging ) |
Visual Basic |
---|
Public Sub New ( _ oc As ObjectContext, _ outputPath As String, _ filter As ProfilerFilter, _ executionPlanMode As ExecutionPlanMode, _ asyncLogging As Boolean _ ) |
Visual C++ |
---|
public: EFProfiler( ObjectContext^ oc, String^ outputPath, ProfilerFilter^ filter, ExecutionPlanMode executionPlanMode, bool asyncLogging ) |
Parameters
- oc
- Type: System.Data.Objects..::..ObjectContext
ObjectContext instance to enable profiling for
- outputPath
- Type: System..::..String
Output directory or URL
- filter
- Type: HuagatiEFProfiler.Filters..::..ProfilerFilter
Runtime filter instance (or null for no filtering)
- executionPlanMode
- Type: HuagatiEFProfiler..::..ExecutionPlanMode
Execution plan mode (None, or Actual. Estimated is not implemented for this profiler)
- asyncLogging
- Type: System..::..Boolean
Use asynchronous log writing?
Examples
CopyC#
public AdventureWorksEntities(bool enableProfiling, string connectionString) : this(HuagatiEFProfiler.EFProfiler.GetConnection(enableProfiling, connectionString)) { //log to the user's personal directory, under L2SProfiler\Samples 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); }