Table of Contents

Class DataContextOptions

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

Constructors

DataContextOptions()

public DataContextOptions()

DataContextOptions(int?, IReadOnlyList<IInterceptor>?)

public DataContextOptions(int? CommandTimeout = null, IReadOnlyList<IInterceptor>? Interceptors = null)

Parameters

CommandTimeout int?

The command timeout, or null if none has been set.

Interceptors IReadOnlyList<IInterceptor>

Gets Interceptors to use with DataConnection instance.

Fields

Empty

public static readonly DataContextOptions Empty

Field Value

DataContextOptions

Properties

CommandTimeout

The command timeout, or null if none has been set.

public int? CommandTimeout { get; init; }

Property Value

int?

Interceptors

Gets Interceptors to use with DataConnection instance.

public IReadOnlyList<IInterceptor>? Interceptors { get; init; }

Property Value

IReadOnlyList<IInterceptor>

Methods

Equals(DataContextOptions?)

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

public bool Equals(DataContextOptions? other)

Parameters

other DataContextOptions

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.