Exemple #1
0
 /// <summary>
 /// 替换SQL关键字
 /// </summary>
 public static string ReplaceSQLKeywords(string str, string replaceStr = "")
 {
     if (!string.IsNullOrEmpty(str))
     {
         while (true)
         {
             if (!RegExpHelper.IsContainSQLKeywords(str))
             {
                 break;
             }
             str = Regex.Replace(str, RegExpHelper.ExpressionSQLKeywords, replaceStr, RegexOptions.IgnoreCase);
         }
     }
     return(str);
 }