Skip to content

BaseCriteria.NotContains method

Creates a new binary Not Contains criteria (NOT LIKE '%...%') containing this criteria as the left operand. The text is treated as a literal value: LIKE special characters (%, _, [) in it are escaped and an ESCAPE '!' clause is appended. For intentional wildcards use NotLike instead.

public BaseCriteria NotContains(string text, bool upper = false)
parameter description
text The literal text to search for.
upper true to use the UPPER function on both sides.

Return Value

A new binary Not Contains criteria.

Exceptions

exception condition
ArgumentNullException text is null

See Also