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 SourceAdapters
Registered adapters collection
Declaration
List<AdapterConfig> Adapters { get; }
Property Value
Type | Description |
---|---|
List<AdapterConfig> |
See Also
| Improve this Doc View SourceContexts
Registered contexts collection
Declaration
List<ContextConfig> Contexts { get; }
Property Value
Type | Description |
---|---|
List<ContextConfig> |
See Also
| Improve this Doc View SourceDefaultContext
Default context name
Declaration
string DefaultContext { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
WARNING! Required configuration attribute!
See Also
| Improve this Doc View SourceDialects
Registered SQL dialects collection
Declaration
List<DialectConfig> Dialects { get; }
Property Value
Type | Description |
---|---|
List<DialectConfig> |
See Also
| Improve this Doc View SourceLifeTimeLimit
XData objects lifetime limit (minutes)
Declaration
int LifeTimeLimit { get; }
Property Value
Type | Description |
---|---|
Int32 |
LogWriter
Log writer class name
Declaration
string LogWriter { get; }
Property Value
Type | Description |
---|---|
String |
MonitoringContext
Health monitoring context name
Declaration
string MonitoringContext { get; }
Property Value
Type | Description |
---|---|
String |
See Also
| Improve this Doc View SourceProxyList
Registered proxy collection
Declaration
List<ProxyConfig> ProxyList { get; }
Property Value
Type | Description |
---|---|
List<ProxyConfig> |
See Also
| Improve this Doc View SourceSecurityContext
Security context name
Declaration
string SecurityContext { get; }
Property Value
Type | Description |
---|---|
String |
See Also
Extension Methods
SqlBlockExtensions.SetExpression<TTag, TResult>(TTag, Expression<Func<IBlockQueryAdapter, TResult>>)