subsonic 配置及使用
时间:2011-05-04 来源:乐上
就是这么简单-没有必要关心要那些表或配置表和对象的映射关系。在实践中,配置看起来如下:
<configuration>
<!-- 1 - Connection String(s) -->
<connectionStrings>
<add name="Northwind"
connectionString="Data Source=.\sqlexpress;Initial
Catalog=Northwind;Integrated Security=True"/>
</connectionStrings>
<configSections>
<!-- 2 - SubSonic section handler -->
<section name="SubSonicService"
type="SubSonic.SubSonicSection, SubSonic"/>
</configSections>
<!-- 3 - Point SubSonic at the appropriate data source(s) -->
<SubSonicService defaultProvider="Northwind">
<providers>
<add name="Northwind"
type="SubSonic.SqlDataProvider, SubSonic"
connectionStringName="Northwind"
generatedNamespace="Northwind"/>
</providers>
</SubSonicService>
</configuration>
来源:http://blog.csdn.net/ILOVEMSDN/archive/2009/02/15/3893027.aspx
相关阅读 更多 +