Literal characters in a variable

Automated deployment for web applications and databases

Literal characters in a variable

Postby GSilvanB » Thu May 15, 2014 1:21 am

What is the character escape for using literal characters in a parameter?

I need this injected into my web.config

<add name="Entities" connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source

But adding that in DM results in

<add name="Entities" connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source

Which obviously doesn't work so well.

Any help greatly appreciated!
Posts: 1
Joined: Thu May 15, 2014 1:16 am

Postby chirayu » Fri May 16, 2014 11:01 am


To do that, you would need to add a variable in Deployment Manager.

Variable name- Entities
Value- metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl;provider=System.Data.SqlClient;provider connection string="data source

Important thing to note is that I am using " in the variable value which is substituted for &quot;

Remember to create a new release before you deploy for the change to take effect.

Hope this helps!

Chirayu Shishodiya
Software Engineer - Deployment Manager
Red Gate
Posts: 73
Joined: Mon Sep 17, 2012 4:48 pm

Return to Deployment Manager

Who is online

Users browsing this forum: No registered users and 1 guest