首先要装Oracle客户端,数据库放在哪里就看你的情况了。

在项目中加入SubSonic.dll的引用;

在项目web.config的configuration中加入

<configSections>
   <section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic" requirePermission="false"/>
</configSections>

<connectionStrings>
   <clear/>
   <add name="OracleDataConnection" connectionString="Data Source=yourdataspace;Persist Security Info=True;User ID=yourid;Password=yourpassword"/>
</connectionStrings>
<SubSonicService defaultProvider="OracleData">
   <providers>
    <clear/>   
    <add name="OracleData" type="SubSonic.OracleDataProvider,SubSonic" connectionStringName="OracleDataConnection" generatedNamespace="OracleDataDomain"/>
   </providers>
</SubSonicService>

 

 

然后SubSonic DAL,参照http://hi.baidu.com/beloving/blog/item/472d17ce1ed17e3ab600c8a9.html


本文转载:CSDN博客