Skip to end of metadata
Go to start of metadata

Represents the entity framework trace listener.

Definition

public class EntityFrameworkTraceListener : TraceListener

Summary

The following table summarizes the members exposed in this class.

Public Constructors

Public Properties

Service Gets the service.

Public Methods

TraceData(TraceEventCache, string, SeverityType, int, object) Traces the log event data.
Write(string) When overridden in a derived class, writes the specified message to the listener you create in the derived class.
WriteLine(string) When overridden in a derived class, writes a message to the listener you create in the derived class, followed by a line terminator.

Public Constructors

public EntityFrameworkTraceListener()

Public Properties

public IEntityFrameworkLogService Service { get; }

Gets the service.

Public Methods

public void TraceData(TraceEventCache eventCache, string source, SeverityType eventType, int id, object data)

Traces the log event data.

Parameters

eventCache The event cache.
source The source.
eventType Type of the event.
id The identifier.
data The data.

public void Write(string message)

When overridden in a derived class, writes the specified message to the listener you create in the derived class.

Parameters

message A message to write.

public void WriteLine(string message)

When overridden in a derived class, writes a message to the listener you create in the derived class, followed by a line terminator.

Parameters

message A message to write.
  • No labels