Dynamic Connection String

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/27/2015 12:46:58 PM
Gravatar
Total Posts 1

Dynamic Connection String

Is there any way to override how mojo gets its SQL connection strings?  I would like to dynamically determine the connection string on startup or on loading based on environmental variables outside of mojo.  Looking through the source code, it looks like my only options are appSettings or connectionStrings sections but I wanted to check.  

Cheers,

Mark

4/27/2015 2:14:12 PM
Gravatar
Total Posts 18444

Re: Dynamic Connection String

yes those are your only options. you can override the main appSettings from user.config so typically your production site would have a different user.config file with its own connection string and you would not deploy the user.config file from your dev environment when publishing.

You must sign in to post in the forums. This thread is closed to new posts.