Azure connection string best practices

后端 未结 5 461
孤独总比滥情好
孤独总比滥情好 2020-11-30 20:43

I have an application that I am just migrating to Azure. Currently I use web.config transformation to manage changing the database connecting string dev/staging/prod environ

5条回答
  •  野性不改
    2020-11-30 21:06

    Personally we:

    1. Dropped web config transformations completely.
    2. Setting is retrieved from cscfg.
    3. Development version of cscfg points to local development environment (that's stored in version control).
    4. While deploying to production, we supply secure credentials for production SQL Azure and storage.

    For sample of the settings management class that scans application settings and cloud environment for configuration values, you can check out open source Lokad.CQRS for Windows Azure project (see CloudSettingsProvider)

提交回复
热议问题