Table of Contents

Class QueryTraceOptions

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

Constructors

QueryTraceOptions()

public QueryTraceOptions()

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

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

Parameters

TraceLevel TraceLevel?

Gets custom trace level to use with DataConnection instance. Value is ignored when TraceSwitch specified.

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.

TraceSwitch TraceSwitch

Gets custom trace switcher to use with DataConnection instance.

Properties

Default

Gets default QueryTraceOptions instance.

public static QueryTraceOptions Default { get; set; }

Property Value

QueryTraceOptions

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. Value is ignored when TraceSwitch specified.

public TraceLevel? TraceLevel { get; init; }

Property Value

TraceLevel?

TraceSwitch

Gets custom trace switcher to use with DataConnection instance.

public TraceSwitch? TraceSwitch { get; init; }

Property Value

TraceSwitch

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

Deconstruct(out TraceLevel?, out Action<TraceInfo>?, out Action<string, string, TraceLevel>?, out TraceSwitch?)

public void Deconstruct(out TraceLevel? TraceLevel, out Action<TraceInfo>? OnTrace, out Action<string, string, TraceLevel>? WriteTrace, out TraceSwitch? TraceSwitch)

Parameters

TraceLevel TraceLevel?
OnTrace Action<TraceInfo>
WriteTrace Action<string, string, TraceLevel>
TraceSwitch TraceSwitch

Equals(QueryTraceOptions?)

public bool Equals(QueryTraceOptions? other)

Parameters

other QueryTraceOptions

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(QueryTraceOptions?, QueryTraceOptions?)

public static bool operator ==(QueryTraceOptions? left, QueryTraceOptions? right)

Parameters

left QueryTraceOptions
right QueryTraceOptions

Returns

bool

operator !=(QueryTraceOptions?, QueryTraceOptions?)

public static bool operator !=(QueryTraceOptions? left, QueryTraceOptions? right)

Parameters

left QueryTraceOptions
right QueryTraceOptions

Returns

bool