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
ConnectionOptions
public ConnectionOptions ConnectionOptions { get; }
Property Value
DataContextOptions
public DataContextOptions DataContextOptions { get; }
Property Value
LinqOptions
public LinqOptions LinqOptions { get; }
Property Value
OptionSets
Provides access to option sets, stored in current options object.
public override IEnumerable<IOptionSet> OptionSets { get; }
Property Value
RetryPolicyOptions
public RetryPolicyOptions RetryPolicyOptions { get; }
Property Value
SqlOptions
public SqlOptions SqlOptions { get; }
Property Value
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
Equals(DataOptions?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DataOptions? other)
Parameters
other
DataOptionsAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
other
parameter; otherwise, false.
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
objectThe 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 typeTSet
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
WithOptions(IOptionSet)
Adds or replace IOptionSet instance based on concrete implementation type.
public override DataOptions WithOptions(IOptionSet options)
Parameters
options
IOptionSetSet of options.
Returns
- DataOptions
New options object with
options
applied.
Operators
operator ==(DataOptions?, DataOptions?)
public static bool operator ==(DataOptions? t1, DataOptions? t2)
Parameters
t1
DataOptionst2
DataOptions
Returns
operator !=(DataOptions?, DataOptions?)
public static bool operator !=(DataOptions? t1, DataOptions? t2)
Parameters
t1
DataOptionst2
DataOptions