Search Results for

    Show / Hide Table of Contents

    Class OptionsContainer<T>

    Base class for options.

    Inheritance
    object
    OptionsContainer<T>
    DataOptions
    Namespace: LinqToDB.Common
    Assembly: linq2db.dll
    Syntax
    public abstract class OptionsContainer<T> where T : OptionsContainer<T>
    Type Parameters
    Name Description
    T

    Derived type.

    Constructors

    | Improve this Doc View Source

    OptionsContainer()

    Declaration
    protected OptionsContainer()
    | Improve this Doc View Source

    OptionsContainer(OptionsContainer<T>)

    Declaration
    protected OptionsContainer(OptionsContainer<T> options)
    Parameters
    Type Name Description
    OptionsContainer<T> options

    Properties

    | Improve this Doc View Source

    OptionSets

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

    Declaration
    public virtual IEnumerable<IOptionSet> OptionSets { get; }
    Property Value
    Type Description
    IEnumerable<IOptionSet>

    Methods

    | Improve this Doc View Source

    Apply<TA>(TA)

    Declaration
    protected void Apply<TA>(TA obj)
    Parameters
    Type Name Description
    TA obj
    Type Parameters
    Name Description
    TA
    | Improve this Doc View Source

    Clone()

    Declaration
    protected abstract T Clone()
    Returns
    Type Description
    T
    | Improve this Doc View Source

    Find<TSet>()

    Search for options set by set type TSet.

    Declaration
    public virtual TSet? Find<TSet>() where TSet : class, IOptionSet
    Returns
    Type Description
    TSet

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

    Type Parameters
    Name Description
    TSet

    Options set type.

    | Improve this Doc View Source

    FindOrDefault<TSet>(TSet)

    Declaration
    public TSet FindOrDefault<TSet>(TSet defaultOptions) where TSet : class, IOptionSet
    Parameters
    Type Name Description
    TSet defaultOptions
    Returns
    Type Description
    TSet
    Type Parameters
    Name Description
    TSet
    | Improve this Doc View Source

    Get<TSet>()

    Returns options set by set type TSet. If options doesn't contain specific options set, it is created and added to options.

    Declaration
    public virtual TSet Get<TSet>() where TSet : class, IOptionSet, new()
    Returns
    Type Description
    TSet

    Returns options set by set type TSet. If options doesn't contain specific options set, it is created and added to options.

    Type Parameters
    Name Description
    TSet

    Options set type.

    | Improve this Doc View Source

    WithOptions(IOptionSet)

    Adds or replace IOptionSet instance based on concrete implementation type.

    Declaration
    public virtual T WithOptions(IOptionSet options)
    Parameters
    Type Name Description
    IOptionSet options

    Set of options.

    Returns
    Type Description
    T

    New options object with options applied.

    | Improve this Doc View Source

    WithOptions<TSet>(Func<TSet, TSet>)

    Adds or replace IOptionSet instance, returned by optionSetter delegate.

    Declaration
    public T WithOptions<TSet>(Func<TSet, TSet> optionSetter) where TSet : class, IOptionSet, new()
    Parameters
    Type Name Description
    Func<TSet, TSet> optionSetter

    New option set creation delegate. Takes current options set as parameter.

    Returns
    Type Description
    T

    New options object (if optionSetter created new options set).

    Type Parameters
    Name Description
    TSet

    IOptionSet concrete type.

    Extension Methods

    Sql.IsDistinctFrom<T>(T, T)
    Sql.IsNotDistinctFrom<T>(T, T)
    Map.DeepCopy<T>(T)
    SqlExtensions.In<T>(T, T, T, T)
    SqlExtensions.In<T>(T, T, T)
    SqlExtensions.In<T>(T, params T[])
    SqlExtensions.In<T>(T, IEnumerable<T>)
    SqlExtensions.In<T>(T, IQueryable<T>)
    SqlExtensions.NotIn<T>(T, T, T, T)
    SqlExtensions.NotIn<T>(T, T, T)
    SqlExtensions.NotIn<T>(T, params T[])
    SqlExtensions.NotIn<T>(T, IEnumerable<T>)
    SqlExtensions.NotIn<T>(T, IQueryable<T>)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2011-2023 linq2db.com

    Generated by DocFX