Subsonic 亚音速展开和更换连接管柱

Subsonic 亚音速展开和更换连接管柱,subsonic,data-access-layer,connection-string,Subsonic,Data Access Layer,Connection String,我使用亚音速为我的一个web应用程序构建DAL。当我将它从测试服务器移动到生产服务器时,我将connectionstring更改为指向生产数据源,但应用程序仍然运行在测试数据库上。连接信息是否存储在Web.config之外的其他位置 部署使用亚音速构建的web应用程序的最佳实践是什么 短暂性脑缺血发作 John在您的次音频服务配置部分中,connectionStringName属性是否指向正确的连接字符串?以下是我的配置示例 <!--####################

我使用亚音速为我的一个web应用程序构建DAL。当我将它从测试服务器移动到生产服务器时,我将connectionstring更改为指向生产数据源,但应用程序仍然运行在测试数据库上。连接信息是否存储在Web.config之外的其他位置

部署使用亚音速构建的web应用程序的最佳实践是什么

短暂性脑缺血发作


John

在您的
次音频服务
配置部分中,
connectionStringName
属性是否指向正确的连接字符串?

以下是我的配置示例

        <!--########################## 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>

您应该发布配置文件中的一些示例(当然没有敏感数据)