Click or drag to resize

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.11.0.0 (5.11.23.1114)
Syntax
DbParameter AppendEscapeClauseForLikePredicate(
	StringBuilder toAppendTo,
	char escapeCharacter,
	string sourceColumnDbType
)

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: DbParameter
the parameter created for the escape character specified or null if no parameter was created (e.g. the database doesn't support ESCAPE)
See Also