Show / Hide Table of Contents

    Interface IConfiguration

    XData configuration

    Namespace: XData.Interfaces
    Assembly: XData.docfx.dll
    Syntax
    public interface IConfiguration
    Examples
        <?xml version="1.0" encoding="utf-8" ?>
        <configuration>
          <!-- *** WARNING! configSections section with declaration of "xdata" is required and mast be first child section of configuration! -->
          <configSections>
            <section name="xdata" type="System.Configuration.IgnoreSectionHandler" />
          </configSections>
          <!-- *** You can configure Your application to direct connect database OR use application server -->
          <!-- *** Endpoint required using application server only -->
          <!--<system.serviceModel>
          <client>
            <endpoint address="net.tcp://localhost:8733/AppServer/"
              binding="netTcpBinding"
              contract="XDataProxy.IAppServer"
              name="XAppServer" />
          </client>
          </system.serviceModel>-->
          <!-- *** Connection strings required using direct connect only -->
          <connectionStrings>
            <add name="TEST" connectionString="Data Source=(local);Initial Catalog=XDataTest;User Id=test;Password=test" />
          </connectionStrings>
          <!-- *** xdata section (see XDataConfiguration.DefaultContext, XDataConfiguration.LogWriter documentation) -->
          <xdata default="TEST" log="XData.Logging.Trace.TraceWriter, XData.Logging.Trace">
            <!-- *** Specific SQL data access adapter required using direct database access  (see XDataConfiguration.Adapters documentation) -->
            <adapter name="MSSQL" file="C:\Projects\Net40\XData\_Debug\XMsSqlAdapter.dll"/>
            <!-- *** Specific SQL dialect adapter  (see XDataConfiguration.Dialects documentation) -->
            <dialect name="MSSQL" file="C:\Projects\Net40\XData\_Debug\XMsSqlDialect.dll"/>
            <!-- *** Proxy adapter required using application server only -->
            <!--<adapter name="PROXY" file="C:\XData\XProxyAdapter.dll"/>-->
            <!-- *** Context can be configured by direct or proxy adapter according Your needs (see XDataConfiguration.Contexts, ContextConfig.SequenceNameRule documentation) -->
            <!--<context name="TEST" adapter="PROXY"/>-->
            <context name="TEST" adapter="MSSQL" sequence="XMyCustomLib.MyDbSequence, XMyCustomLib"/>
            <!-- *** Context proxy configuration required using application server only (see XDataConfiguration.ProxyList documentation) -->
            <!--<proxy name="TEST" adapter="MSSQL" endpoint="XAppServer" />-->
          </xdata>
        </configuration>

    Properties

    | Improve this Doc View Source

    Adapters

    Registered adapters collection

    Declaration
    List<AdapterConfig> Adapters { get; }
    Property Value
    Type Description
    List<AdapterConfig>
    See Also
    AdapterConfig
    | Improve this Doc View Source

    Contexts

    Registered contexts collection

    Declaration
    List<ContextConfig> Contexts { get; }
    Property Value
    Type Description
    List<ContextConfig>
    See Also
    ContextConfig
    | Improve this Doc View Source

    DefaultContext

    Default context name

    Declaration
    string DefaultContext { get; }
    Property Value
    Type Description
    String
    Remarks

    WARNING! Required configuration attribute!

    See Also
    Context
    Context
    | Improve this Doc View Source

    Dialects

    Registered SQL dialects collection

    Declaration
    List<DialectConfig> Dialects { get; }
    Property Value
    Type Description
    List<DialectConfig>
    See Also
    DialectConfig
    | Improve this Doc View Source

    LifeTimeLimit

    XData objects lifetime limit (minutes)

    Declaration
    int LifeTimeLimit { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    LogWriter

    Log writer class name

    Declaration
    string LogWriter { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    MonitoringContext

    Health monitoring context name

    Declaration
    string MonitoringContext { get; }
    Property Value
    Type Description
    String
    See Also
    Context
    Context
    | Improve this Doc View Source

    ProxyList

    Registered proxy collection

    Declaration
    List<ProxyConfig> ProxyList { get; }
    Property Value
    Type Description
    List<ProxyConfig>
    See Also
    ProxyConfig
    | Improve this Doc View Source

    SecurityContext

    Security context name

    Declaration
    string SecurityContext { get; }
    Property Value
    Type Description
    String
    See Also
    Context
    Context

    Extension Methods

    SerializationExtensions.ToXml<T>(T)
    CollectionsExtensions.SetValue<TKey, T>(TKey, T)
    CollectionsExtensions.AsEnum<T>(T)
    DataObjectQueryableExtensions.CompareVariable(Object, FilterOperation, String)
    Processing.Do<T>(T, Action<IProcess<T>>[])
    TypeExtensions.TryConvert<T, TResult>(T, Func<T, TResult>)
    TypeExtensions.TryConvert<T, TResult>(T, Func<T, TResult>, TResult)
    TypeExtensions.ChangeType<T>(Object)
    TypeExtensions.ChangeType(Object, Type)
    TypeExtensions.InvokeMethod<TRet>(Object, Type[], Expression<Func<TRet>>, BindingFlags)
    TypeExtensions.InvokeMethod(Object, Type[], Expression<Action>, BindingFlags)
    TypeExtensions.InvokeMethod<TRet>(Object, Expression<Func<TRet>>, BindingFlags)
    TypeExtensions.InvokeMethod(Object, Expression<Action>, BindingFlags)
    SqlBlockExtensions.SetExpression<TTag, TResult>(TTag, Expression<Func<IBlockQueryAdapter, TResult>>)
    QueryDescriptionExtensions.SetExpression<TTag, TResult>(TTag, Expression<Func<IQueryStructureAdapter, TResult>>)

    See Also

    Adapters
    Dialects
    Contexts
    ProxyList
    DefaultContext
    LogWriter
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX