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
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
Methods
Equals(DataContextOptions?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DataContextOptions? other)
Parameters
other
DataContextOptionsAn 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()