SqlParser.cs
/// <summary>
/// Escape WildCard Chars for SQL query
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
Escape WildCard Chars for SQL query
Escape WildCard Chars for SQL query
private string EscapeWildCardChars(string value)
		{
			value = value.Replace("/", "//");
			var wildCardChars = new List<string>
			{
				 "%", "^", "_", "]", "[", "&", "?", "!", "-", "#", "*"
			};
			foreach (var wildcard in wildCardChars)
			{
				value = value.Replace(wildcard, string.Format("/{0}", wildcard));
			}
			return value;
		}
private string EscapeWildCardChars ( string value ) { value = value . Replace ( " " , " " ) ; var wildCardChars = new List < string > { " " , " " , " " , " " , " " , " " , " " , " " , " " , " " , " " } ; foreach ( var wildcard in wildCardChars ) { value = value . Replace ( wildcard , string . Format ( " " , wildcard ) ) ; } return value ; }
Escape WildCard Chars for SQL query
Escape WildCard Chars for SQL query
None
value
string
None