Sql.LikePrefixParam method

Creates SQL for an arbitrarily named parameter with the specified fragment of a LIKE pattern followed by a trailing %.

public static Sql LikePrefixParam(string prefix)

Remarks

The default implementation escapes % and _ in the prefix with \. Depending on the database and its settings, escape '\' may be needed after the parameter.

See Also