Last active
August 29, 2015 14:00
-
-
Save matijagrcic/11114563 to your computer and use it in GitHub Desktop.
Connection strings Azure and basic, deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#put in your web.config or app.config | |
<configuration> | |
<connectionStrings configSource="connections.config"/> | |
</configuration> | |
#this is your connections.config which can be used for several projects, transformations Release,Debug etc. | |
<configuration> | |
<connectionStrings> | |
<add name="First" connectionString="firstConnection" providerName="System.Data.SqlClient" /> | |
<add name="Second" connectionString="secondConnection" providerName="System.Data.SqlClient" /> | |
</connectionStrings> | |
</configuration> | |
#for appSettings you can use file | |
<configuration> | |
<appSettings file="keys.config"> | |
<add key="firstKey" value="firstValue" /> | |
<add key="secondKey" value="secondValue" /> | |
</appSettings> | |
<system.web> | |
</system.web> | |
</configuration> | |
#keys.config, replaced first value, added new key | |
<appSettings> | |
<add key="firstKey" value="firstValueNew" /> | |
<add key="thirdKey" value="thirdValue" /> | |
</appSettings> | |
http://www.codeproject.com/Articles/63977/Windows-Azure-Development-Deep-Dive-Working-With-C | |
http://www.nuget.org/packages/Microsoft.WindowsAzure.ConfigurationManager | |
http://www.cloudidentity.com/blog/2011/05/31/EDIT-AND-APPLY-NEW-WIF-S-CONFIG-SETTINGS-IN-YOUR-WINDOWS-AZURE-WEBROLE-WITHOUT-REDEPLOYING/ | |
http://stackoverflow.com/questions/14358903/how-do-cscfg-files-and-app-config-files-relate-to-one-another-for-azure-worker-r | |
http://msdn.microsoft.com/en-us/library/ee405486.aspx | |
http://msdn.microsoft.com/library/azure/ee460799.aspx | |
http://haishibai.blogspot.com/2012/09/windows-azure-cloud-service.html | |
http://blogs.msdn.com/b/lucascan/archive/2012/10/26/storing-database-connection-strings-for-azure-cloud-services-including-encypting-the-connection-strings.aspx | |
http://stackoverflow.com/a/12395395/1241400 | |
http://www.heikniemi.net/hardcoded/2013/06/encrypting-connection-strings-in-windows-azure-web-applications/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment