How can I change the connection string to my entity framework database, based on if it is debugging locally, or on the server. I want to use the internal IP address of the database when it is on the server to hopefully increase performance. I am hoping I will not have to change the connection string every time I want to publish the site.
I am using Visual Studo 11. I have not tried anything because I am not sure what the options are. I have been deploying to file system, but I will be doing web deploy in the near future.
How can I change the connection string to my entity framework database, based on
Share
Sounds like you need Web.config transformations.
With it, you can replace values in the config file automatically based on the build configuration. Create a separate build configuration for the server if needed, or just use Release.