tijian_jichuang/文档/EAS/EAS.WinClient.Start.exe.config
2025-02-20 11:57:51 +08:00

55 lines
2.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="eas" type="EAS.ConfigHandler,EAS.MicroKernel" />
</configSections>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
<runtime>
<!-- WARNING: will load assemblies from remote locations as fully trusted! -->
<loadFromRemoteSources enabled="true" />
</runtime>
<eas>
<configurations>
<item name="Key" value="Value" />
</configurations>
<objects>
<object name="DbProvider" assembly="EAS.Data" type="EAS.Data.Access.SqlClientDbProvider" LifestyleType="Thread">
<property name="ConnectionString" type="string" value="Data Source=.;Initial Catalog=eas_db;Integrated Security=SSPI;Connect Timeout=30" />
</object>
<!--数据访问器-->
<object name="DataAccessor" assembly="EAS.Data" type="EAS.Data.Access.DataAccessor" LifestyleType="Thread">
<property name="DbProvider" type="object" value="DbProvider"/>
<property name="Language" type="object" value="TSqlLanguage"/>
</object>
<!--ORM访问器-->
<object name="OrmAccessor" assembly="EAS.Data" type="EAS.Data.ORM.OrmAccessor" LifestyleType="Thread">
<property name="DataAccessor" type="object" value="DataAccessor"/>
<!--<property name="DataNotifier" type="object" value="DataNotifier"/>-->
</object>
<!--数据通知程序-->
<!--<object name="DataNotifier" assembly="EAS.Data" type="EAS.Data.ORM.SocketBusDataNotifier" LifestyleType="Singleton">
<property name="MessageBus" type="object" value="MessageBus"/>
</object>-->
<!--消息总线-->
<!--<object name="MessageBus" assembly="EAS.MicroKernel" type="EAS.Sockets.Bus.SocketBus" LifestyleType="Singleton">
<property name="Url" type="string" value="socket.tcp://127.0.0.1:6606/"/>
</object>-->
<!--查询语言-->
<object name="TSqlLanguage" assembly="EAS.Data" type="EAS.Data.Linq.TSqlLanguage" LifestyleType="Thread"/>
<!--直连服务桥-->
<object name="ServiceBridger" assembly="EAS.MicroKernel" type="EAS.Services.DirectServiceBridger" LifestyleType="Singleton" >
<property name="AutoLoad" type="bool" value="true"/>
</object>-->
<!--日志管理-->
<object name="Logger" assembly="EAS.MicroKernel" type="EAS.Loggers.TextLogger" LifestyleType="Singleton" />
<!--资源-->
<!--<object name="EAS.Explorer.Resource" assembly="EAS.Explorer.Res" type="EAS.Explorer.Res.Resources" LifestyleType="Singleton" />-->
<!--缓存访问器、旧版兼容-->
<object name="CacheAccessor" assembly="EAS.Data" type="EAS.Data.ORM.CacheAccessor" LifestyleType="Singleton" />
</objects>
</eas>
</configuration>