SqlHelperEscapeLikeQueryPatterns Method |
Escapes characters for query which use LIKE pattern.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 9.0.0
Syntax public static string EscapeLikeQueryPatterns(
string input,
bool escapeUnderScore = true,
bool escapePercentage = true,
bool escapeSquareBrackets = true
)
Parameters
- input
- Type: SystemString
Input text - escapeUnderScore (Optional)
- Type: SystemBoolean
Indicates whether underscore character should be escaped - escapePercentage (Optional)
- Type: SystemBoolean
Indicates whether percentage character should be escaped - escapeSquareBrackets (Optional)
- Type: SystemBoolean
Indicates whether square brackets characters should be escaped
Return Value
Type:
StringSee Also