I just wanted to know how i can proceed with the Entity Frame work connection string variable creation in the Octopus deploy. Below is my Connection string format. I just wanted to know how i can create the global variable to use for my Web.config.
Thank you very much for your reply. If you observe my connection string it included the Entityframework parameters in that. If possible can you please help me with some sample parameter names using the above connection string variables.
Which part of the connection string is going to be replaced with a variable?
Approach A - the whole connection string is a variable. This would be the easiest one.
Approach B - Only specific parts of the connection string will be variables. Like:
<add name="MLMEntities" connectionString="metadata=res://*/EDMX.MLM_DataModel.csdl|res://*/EDMX.MLM_DataModel.ssdl|res://*/EDMX.MLM_DataModel.msl;provider=System.Data.SqlClient;provider connection string="data source=[Variable for data source];initial catalog=Workflow;user id=[Variable for user];password=[Variable for Pass];MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
If i wanted the the specific parts of the connection string , Do i need to specify as shown in below? what i need to do with " value?
metadata=res:///EDMX.MLM_DataModel.csdl|res:///EDMX.MLM_DataModel.ssdl|res://*/EDMX.MLM_DataModel.msl;
provider=System.Data.SqlClient;
provider connection string=“
data source=[Variable for data source];
initial catalog=Workflow;
user id=[Variable for user];
password=[Variable for Pass];
MultipleActiveResultSets=True;
App=EntityFramework”"
providerName=“System.Data.EntityClient”