Table of Contents

Class QueryTraceOptions

Namespace
LinqToDB.Data
Assembly
linq2db.dll
public sealed record QueryTraceOptions : IOptionSet, IConfigurationID, IEquatable<QueryTraceOptions>
Inheritance
QueryTraceOptions
Implements
Extension Methods

Constructors

QueryTraceOptions()

public QueryTraceOptions()

QueryTraceOptions(TraceLevel?, Action<TraceInfo>?, Action<string?, string?, TraceLevel>?)

public QueryTraceOptions(TraceLevel? TraceLevel = null, Action<TraceInfo>? OnTrace = null, Action<string?, string?, TraceLevel>? WriteTrace = null)

Parameters

TraceLevel TraceLevel?

Gets custom trace level to use with DataConnection instance.

OnTrace Action<TraceInfo>

Gets custom trace method to use with DataConnection instance.

WriteTrace Action<string, string, TraceLevel>

Gets custom trace writer to use with DataConnection instance.

Fields

Empty

public static readonly QueryTraceOptions Empty

Field Value

QueryTraceOptions

Properties

OnTrace

Gets custom trace method to use with DataConnection instance.

public Action<TraceInfo>? OnTrace { get; init; }

Property Value

Action<TraceInfo>

TraceLevel

Gets custom trace level to use with DataConnection instance.

public TraceLevel? TraceLevel { get; init; }

Property Value

TraceLevel?

WriteTrace

Gets custom trace writer to use with DataConnection instance.

public Action<string?, string?, TraceLevel>? WriteTrace { get; init; }

Property Value

Action<string, string, TraceLevel>

Methods

Equals(QueryTraceOptions?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(QueryTraceOptions? other)

Parameters

other QueryTraceOptions

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current object.