private bool HasConnectionStringParameterExtract(string parameterName, out string newVal)
 {
     newVal = null;
     if (!string.IsNullOrEmpty(parameterName))
     {
         string divider = DatabaseNexus.GetConnectionStringParameterDivider(DatabaseType);
         if (divider != null && divider.Length == 1)
         {
             string match = DatabaseNexus.GetConnectionStringPart(DatabaseType, parameterName, "[^" + divider + "]*");
             if (match != null)
             {
                 string str = ConnectionString;
                 if (!string.IsNullOrEmpty(str))
                 {
                     string newStr = Regex.Replace(str, match, "");
                     if (str.Length != newStr.Length)
                     {
                         newVal = newStr;
                         return(true);
                     }
                 }
             }
         }
     }
     return(false);
 }
 /// <summary>
 /// Sets the connection string parameter.
 /// </summary>
 /// <param name="parameterName">Name of the parameter.</param>
 /// <param name="parameterValue">The parameter value.</param>
 public virtual void SetConnectionStringParameter(string parameterName, string parameterValue)
 {
     if (!string.IsNullOrEmpty(parameterName))
     {
         RemoveConnectionStringParameter(parameterName);
         ConnectionString += DatabaseNexus.GetConnectionStringPart(DatabaseType, parameterName, parameterValue);
     }
 }