Subsonic 配置文件

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

<?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>

原文地址:https://www.cnblogs.com/BeyondTime/p/2995336.html