Search Results for

    Show / Hide Table of Contents

    Class TraceInfo

    Tracing information for the DataConnection events.

    Inheritance
    System.Object
    TraceInfo
    Namespace: LinqToDB.Data
    Assembly: linq2db.dll
    Syntax
    public class TraceInfo : object

    Constructors

    | Improve this Doc View Source

    TraceInfo(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 Source

    Command

    Gets or sets the associated with the tracing event.

    Declaration
    public DbCommand? Command { get; set; }
    Property Value
    Type Description
    System.Nullable<DbCommand>
    | Improve this Doc View Source

    CommandText

    Gets or sets the text of the command.

    Declaration
    public string? CommandText { get; set; }
    Property Value
    Type Description
    System.Nullable<System.String>
    | Improve this Doc View Source

    DataConnection

    Gets or sets the DataConnection that produced the tracing event.

    Declaration
    public DataConnection DataConnection { get; }
    Property Value
    Type Description
    DataConnection
    | Improve this Doc View Source

    Exception

    Gets or sets the Exception for Error step.

    Declaration
    public Exception? Exception { get; set; }
    Property Value
    Type Description
    System.Nullable<Exception>
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    IsAsync

    Gets a flag indicating whether operation was executed asynchronously.

    Declaration
    public bool IsAsync { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    MapperExpression

    Gets or sets the expression used by the results mapper.

    Declaration
    public Expression? MapperExpression { get; set; }
    Property Value
    Type Description
    System.Nullable<Expression>
    | Improve this Doc View Source

    Operation

    Gets the operation, for which tracing event generated, TraceOperation.

    Declaration
    public TraceOperation Operation { get; }
    Property Value
    Type Description
    TraceOperation
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    SqlText

    Gets the formatted SQL text of the command.

    Declaration
    public string SqlText { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    StartTime

    Gets or sets the starting of the operation (UTC).

    Declaration
    public DateTime? StartTime { get; set; }
    Property Value
    Type Description
    System.Nullable<DateTime>
    | Improve this Doc View Source

    TraceInfoStep

    Gets the tracing execution step, TraceInfoStep.

    Declaration
    public TraceInfoStep TraceInfoStep { get; }
    Property Value
    Type Description
    TraceInfoStep
    | Improve this Doc View Source

    TraceLevel

    Gets or sets the tracing detail level, TraceLevel.

    Declaration
    public TraceLevel TraceLevel { get; set; }
    Property Value
    Type Description
    TraceLevel

    Extension Methods

    Map.DeepCopy<T>(T)
    Sql.IsDistinctFrom<T>(T, T)
    Sql.IsNotDistinctFrom<T>(T, T)
    SqlExtensions.In<T>(T, IEnumerable<T>)
    SqlExtensions.In<T>(T, IQueryable<T>)
    SqlExtensions.In<T>(T, T[])
    SqlExtensions.In<T>(T, T, T)
    SqlExtensions.In<T>(T, T, T, T)
    SqlExtensions.NotIn<T>(T, IEnumerable<T>)
    SqlExtensions.NotIn<T>(T, IQueryable<T>)
    SqlExtensions.NotIn<T>(T, T[])
    SqlExtensions.NotIn<T>(T, T, T)
    SqlExtensions.NotIn<T>(T, T, T, T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2011-2022 linq2db.com

    Generated by DocFX