Hi,
I am writing CriteriaQuery. To escape special characters such as '[' I use Restrictions.Like(string propertyName, string value, MatchMode matchMode, char? escapeChar); It is working fine for all Databases.
But now I want to add CaseInsensitivity. For this I have found the function Restrictions.InsensitiveLike(string propertyName, string value, MatchMode matchMode);
but this function does not contain escapeChar parameter. So I can not escape special characters.
Is there any way to make the HQL case insensitive and also escape special characters?
Thanks in Advance.
Regards, Niranjan
|