コード例 #1
0
 public override void SetPredefinedConfigOverride(string connectionString)
 {
     ConfigOverride connStrAllMeds = new ConfigOverride();
     connStrAllMeds.ConfigXPath = @"/configuration/DbUpdater";
     connStrAllMeds.AttributeName = "ConnectionString";
     connStrAllMeds.Value = connectionString;
     PredefinedConfigs.Add(connStrAllMeds);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }