public override void SetPredefinedConfigOverride(string connectionString) { ConfigOverride connStrAllMeds = new ConfigOverride(); connStrAllMeds.ConfigXPath = @"/configuration/DbUpdater"; connStrAllMeds.AttributeName = "ConnectionString"; connStrAllMeds.Value = connectionString; PredefinedConfigs.Add(connStrAllMeds); }
protected void AddPredefinedConfig(string xpath, string attributeName, string newValue) { ConfigOverride connection = new ConfigOverride(); connection.ConfigXPath = xpath; connection.AttributeName = attributeName; connection.Value = newValue; PredefinedConfigOverride.Add(connection); }
public override void SetPredefinedConfigOverride(string connectionString) { ConfigOverride connStrAllMeds = new ConfigOverride(); connStrAllMeds.ConfigXPath = @"/configuration/connectionStrings/add[@name='AllMedsContext']"; connStrAllMeds.AttributeName = "connectionString"; connStrAllMeds.Value = connectionString + ";MultipleActiveResultSets= True;App = EntityFramework"; PredefinedConfigs.Add(connStrAllMeds); }