博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Subsonic 配置文件

Posted on 2013-04-02 13:41  时间之外  阅读(153)  评论(0)    收藏  举报

很简单的配置,却浪费了不少时间试,还是贴在这吧。

<?xml version="1.0"?>
<configuration>

<configSections>
<section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic"
allowDefinition="MachineToApplication" restartOnExternalChanges="true"
requirePermission="false"/>
</configSections>
<connectionStrings>
<add name="lrt" connectionString="User ID=sa;Initial Catalog=LRT;Data Source=.;pwd=123456"
providerName="System.Data.SqlClient" />
</connectionStrings>
<SubSonicService defaultProvider="lrt">
<providers>
<clear/>
<add name="lrt" type="SubSonic.SqlDataProvider, SubSonic"
connectionStringName="lrt" generatedNamespace="lrt"/>
</providers>
</SubSonicService>
</configuration>