Class TraceInfo
Tracing information for the DataConnection events.
public class TraceInfo
- Inheritance
-
TraceInfo
- Extension Methods
Constructors
TraceInfo(DataConnection, TraceInfoStep, TraceOperation, bool)
Initializes a new instance of the TraceInfo class.
public TraceInfo(DataConnection dataConnection, TraceInfoStep traceInfoStep, TraceOperation operation, bool isAsync)
Parameters
dataConnection
DataConnectionDataConnection instance, generated this trace.
traceInfoStep
TraceInfoStepTrace execution step.
operation
TraceOperationOperation associated with trace event.
isAsync
boolFlag indicating whether operation was executed asynchronously.
Properties
Command
Gets or sets the DbCommand associated with the tracing event.
public DbCommand? Command { get; set; }
Property Value
CommandText
Gets or sets the text of the command.
public string? CommandText { get; set; }
Property Value
DataConnection
Gets or sets the DataConnection that produced the tracing event.
public DataConnection DataConnection { get; }
Property Value
Exception
public Exception? Exception { get; set; }
Property Value
ExecutionTime
Gets or sets the execution time for AfterExecute, Completed, and Error steps.
public TimeSpan? ExecutionTime { get; set; }
Property Value
IsAsync
Gets a flag indicating whether operation was executed asynchronously.
public bool IsAsync { get; }
Property Value
MapperExpression
Gets or sets the expression used by the results mapper.
public Expression? MapperExpression { get; set; }
Property Value
Operation
Gets the operation, for which tracing event generated, TraceOperation.
public TraceOperation Operation { get; }
Property Value
RecordsAffected
Gets or sets the number of rows affected by the command or the number of rows produced by the DataReader.
public int? RecordsAffected { get; set; }
Property Value
- int?
SqlText
Gets the formatted SQL text of the command.
public string SqlText { get; }
Property Value
StartTime
Gets or sets the starting DateTime of the operation (UTC).
public DateTime? StartTime { get; set; }
Property Value
TraceInfoStep
Gets the tracing execution step, TraceInfoStep.
public TraceInfoStep TraceInfoStep { get; }
Property Value
TraceLevel
Gets or sets the tracing detail level, TraceLevel.
public TraceLevel TraceLevel { get; set; }