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
connectionOptionsConnectionOptions
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
dataConnectionDataConnection
Apply(DataContext)
public void Apply(DataContext dataContext)
Parameters
dataContextDataContext
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
otherDataOptionsAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobjectThe 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
nullif set with typeTSetnot found in options.
Type Parameters
TSetOptions 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
optionsIOptionSetSet of options.
Returns
- DataOptions
New options object with
optionsapplied.
Operators
operator ==(DataOptions?, DataOptions?)
public static bool operator ==(DataOptions? t1, DataOptions? t2)
Parameters
t1DataOptionst2DataOptions
Returns
operator !=(DataOptions?, DataOptions?)
public static bool operator !=(DataOptions? t1, DataOptions? t2)
Parameters
t1DataOptionst2DataOptions