我使用 Subsonic 为我的一个 Web 应用程序构建了 DAL。当我将它从我的测试服务器移动到生产服务器时,我将连接字符串更改为指向生产数据源,但应用程序仍然针对测试数据库运行。除了 Web.config 之外,连接信息是否存储在其他地方?
部署使用 Subsonic 构建的 Web 应用程序的最佳实践是什么?
TIA
约翰
我使用 Subsonic 为我的一个 Web 应用程序构建了 DAL。当我将它从我的测试服务器移动到生产服务器时,我将连接字符串更改为指向生产数据源,但应用程序仍然针对测试数据库运行。除了 Web.config 之外,连接信息是否存储在其他地方?
部署使用 Subsonic 构建的 Web 应用程序的最佳实践是什么?
TIA
约翰
这是我的配置示例。
<!--########################## Connection Strings ###############################-->
<connectionStrings>
<clear/>
<add name="Ajax"
connectionString="Data Source=Ajax1;Initial Catalog=AjaxExample_test;User ID=Webuser;Password=Pinecone!"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<!--########################## SubSonic ###############################-->
<SubSonicService defaultProvider="AjaxProv">
<providers>
<clear/>
<add name="AjaxProv" type="SubSonic.SqlDataProvider, SubSonic"
connectionStringName="Ajax"
generatedNamespace="ICBA.Web.SalesForce.StagingDAL"
appendWith=""
stripColumnText=""
relatedTableLoadPrefix=""
enableTrace="false"
extractClassNameFromSPName="false"
fixDatabaseObjectCasing="true"
fixPluralClassNames="true"
generateLazyLoads="false"
generateNullableProperties="true"
generateODSControllers="true"
generateRelatedTablesAsProperties="false"
includeProcedureList="*"
excludeTableList=""
includeTableList="*"
regexDictionaryReplace="TypeCode,typecode"
regexIgnoreCase="true"
removeUnderscores="true"
setPropertyDefaultsFromDatabase="false"
useExtendedProperties="false"
useSPs="true"/>
</providers>
</SubSonicService>
在您的SubSonicService
配置部分中,该connectionStringName
属性是否指向正确的连接字符串?