Config for Subsonic in Winform
April 11, 2009
To use Subsonic as an DAL in your windows application, you will need to do a bit more work then for Web App.
In all the project need to access to the database using Subsonic, you will need to add a references to: Subsonic.DLL, System.Web, System.configuration as Subsonic require all those library to run.
<?xml version="1.0" encoding="utf-8" ? >
<configuration >
<configSections >
<section name="SubSonicService"
type="SubSonic.SubSonicSection, SubSonic"
requirePermission="false" / >
</configSections >
<connectionStrings >
<add name="ConnectionString4SubSonic"
connectionString="Data Source=___;Initial Catalog=___;User ID=__;Password=_____"
providerName="System.Data.SqlClient" / >
</connectionStrings >
<SubSonicService defaultProvider="ORM" >
<providers >
<clear/ >
<add name="ORM" type="SubSonic.SqlDataProvider, SubSonic"
connectionStringName="ConnectionString4SubSonic"
generatedNamespace="___"
includeTableList="Tbl*"
regexDictionaryReplace="tbl+,"/ >
</providers >
</SubSonicService >
</configuration >

nice tutorial
Trackbacks