The EFProfiler type exposes the following members.

Constructors

  NameDescription
Public methodEFProfiler
Constructor for the EFProfiler

Methods

  NameDescription
Public methodAddCustomProfilerData(String)
Adds custom context information to the next query executed by the currently profiled DataContext.
Public methodAddCustomProfilerData(String, Boolean)
Adds custom context information for all subsequent queries executed by the currently profiled DataContext.
Public methodDispose
Releases all resources used by the QueryProfiler.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Destructor for the QueryProfiler class.
(Overrides Object..::..Finalize()()()().)
Public methodStatic memberGetConnection
Retrieves a profiling wrapped EntityConnection. Call from the ObjectContext constructor.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyProfilerSessionCustomData
Set/Get custom profiler context information for the current profiling session.

Events

  NameDescription
Public eventAfterSerializing
The AfterSerializing event is fired after a profiler log entry is serialized (or queued for serialization in case of asynchronous log writes).
Public eventBeforeSerializing
The BeforeSerializing event is fired before a QueryInformation object (EF Profiler log entry) is about to be serialized.
Public eventFilteredOut
The FilteredOut event is fired if a profiler log entry is excluded from the log by a filter.
Public eventLogError
The LogError event is raised if the profiler fails to write to the log. Sender is the profiler entry that couldn't be written, event arguments contain a LogErrorEventArgs instance with details on what caused the failure.

See Also