IDbSpecificCreatorAppendEscapeClauseForLikePredicate Method |
Appends the character specified to the string builder specified together with ESCAPE to use it as an escape.
If a database doesn't support the ESCAPE clause, implement this method and simply return null.
By default this method appends ESCAPE parameter, where parameter is a string parameter with the character specified.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.10.0.0 (5.10.0)
Syntax DbParameter AppendEscapeClauseForLikePredicate(
StringBuilder toAppendTo,
char escapeCharacter,
string sourceColumnDbType
)
Function AppendEscapeClauseForLikePredicate (
toAppendTo As StringBuilder,
escapeCharacter As Char,
sourceColumnDbType As String
) As DbParameter
Parameters
- toAppendTo
- Type: System.TextStringBuilder
The string builder to append the ESCAPE clause to - escapeCharacter
- Type: SystemChar
the character to use as escape character - sourceColumnDbType
- Type: SystemString
The type of the column the like operator is working on
Return Value
Type:
DbParameterthe parameter created for the escape character specified or null if no parameter was created (e.g. the database doesn't support
ESCAPE)
See Also