Table of Contents

Class DataOptions

Namespace
LinqToDB
Assembly
linq2db.dll

Immutable context configuration object.

public sealed class DataOptions : OptionsContainer<DataOptions>, IConfigurationID, IEquatable<DataOptions>, ICloneable
Inheritance
DataOptions
Implements
Inherited Members
Extension Methods

Constructors

DataOptions()

public DataOptions()

DataOptions(ConnectionOptions)

public DataOptions(ConnectionOptions connectionOptions)

Parameters

connectionOptions ConnectionOptions

Properties

BulkCopyOptions

public BulkCopyOptions BulkCopyOptions { get; }

Property Value

BulkCopyOptions

ConnectionOptions

public ConnectionOptions ConnectionOptions { get; }

Property Value

ConnectionOptions

DataContextOptions

public DataContextOptions DataContextOptions { get; }

Property Value

DataContextOptions

LinqOptions

public LinqOptions LinqOptions { get; }

Property Value

LinqOptions

OptionSets

Provides access to option sets, stored in current options object.

public override IEnumerable<IOptionSet> OptionSets { get; }

Property Value

IEnumerable<IOptionSet>

RetryPolicyOptions

public RetryPolicyOptions RetryPolicyOptions { get; }

Property Value

RetryPolicyOptions

SqlOptions

public SqlOptions SqlOptions { get; }

Property Value

SqlOptions

Methods

Apply(DataConnection)

public void Apply(DataConnection dataConnection)

Parameters

dataConnection DataConnection

Apply(DataContext)

public void Apply(DataContext dataContext)

Parameters

dataContext DataContext

Clone()

protected override DataOptions Clone()

Returns

DataOptions

Equals(DataOptions?)

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

public bool Equals(DataOptions? other)

Parameters

other DataOptions

An object to compare with this object.

Returns

bool

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

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

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

Find<TSet>()

Search for options set by set type TSet.

public override TSet? Find<TSet>() where TSet : class, IOptionSet

Returns

TSet

Options set or null if set with type TSet not found in options.

Type Parameters

TSet

Options set type.

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current object.

WithOptions(IOptionSet)

Adds or replace IOptionSet instance based on concrete implementation type.

public override DataOptions WithOptions(IOptionSet options)

Parameters

options IOptionSet

Set of options.

Returns

DataOptions

New options object with options applied.

Operators

operator ==(DataOptions?, DataOptions?)

public static bool operator ==(DataOptions? t1, DataOptions? t2)

Parameters

t1 DataOptions
t2 DataOptions

Returns

bool

operator !=(DataOptions?, DataOptions?)

public static bool operator !=(DataOptions? t1, DataOptions? t2)

Parameters

t1 DataOptions
t2 DataOptions

Returns

bool