Class TraceInfo
Tracing information for the DataConnection events.
Inheritance
Namespace: LinqToDB.Data
Assembly: linq2db.dll
Syntax
public class TraceInfo : object
Constructors
| Improve this Doc View SourceTraceInfo(DataConnection, TraceInfoStep, TraceOperation, Boolean)
Initializes a new instance of the TraceInfo class.
Declaration
public TraceInfo(DataConnection dataConnection, TraceInfoStep traceInfoStep, TraceOperation operation, bool isAsync)
Parameters
Type | Name | Description |
---|---|---|
DataConnection | dataConnection | DataConnection instance, generated this trace. |
TraceInfoStep | traceInfoStep | Trace execution step. |
TraceOperation | operation | Operation associated with trace event. |
System.Boolean | isAsync | Flag indicating whether operation was executed asynchronously. |
Properties
| Improve this Doc View SourceCommand
Gets or sets the
Declaration
public DbCommand? Command { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DbCommand> |
CommandText
Gets or sets the text of the command.
Declaration
public string? CommandText { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
DataConnection
Gets or sets the DataConnection that produced the tracing event.
Declaration
public DataConnection DataConnection { get; }
Property Value
Type | Description |
---|---|
DataConnection |
Exception
Declaration
public Exception? Exception { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Exception> |
ExecutionTime
Gets or sets the execution time for AfterExecute, Completed, and Error steps.
Declaration
public TimeSpan? ExecutionTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<TimeSpan> |
IsAsync
Gets a flag indicating whether operation was executed asynchronously.
Declaration
public bool IsAsync { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MapperExpression
Gets or sets the expression used by the results mapper.
Declaration
public Expression? MapperExpression { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Expression> |
Operation
Gets the operation, for which tracing event generated, TraceOperation.
Declaration
public TraceOperation Operation { get; }
Property Value
Type | Description |
---|---|
TraceOperation |
RecordsAffected
Gets or sets the number of rows affected by the command or the number of rows produced by the DataReader.
Declaration
public int? RecordsAffected { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
SqlText
Gets the formatted SQL text of the command.
Declaration
public string SqlText { get; }
Property Value
Type | Description |
---|---|
System.String |
StartTime
Gets or sets the starting
Declaration
public DateTime? StartTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
TraceInfoStep
Gets the tracing execution step, TraceInfoStep.
Declaration
public TraceInfoStep TraceInfoStep { get; }
Property Value
Type | Description |
---|---|
TraceInfoStep |
TraceLevel
Gets or sets the tracing detail level, TraceLevel.
Declaration
public TraceLevel TraceLevel { get; set; }
Property Value
Type | Description |
---|---|
TraceLevel |