case insensitive search - oracle

Posts   
 
    
saravana
User
Posts: 63
Joined: 11-Nov-2010
# Posted on: 10-Feb-2011 15:13:14   

Hi,

I am using oracle 11g as my database for my WPF application. I need to implement a case insensitive search without doing any modification in Oracle server settings. I have seen the following forum about this kind of implementation.

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=829 But this is almost six years old. Is any other better way introduced/available in the newer versions? I am using LLBLGEN 3.0 now. If it is not could anybody tell that where exactly I need to place the class given in the above forum?

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 10-Feb-2011 21:07:35   
saravana
User
Posts: 63
Joined: 11-Nov-2010
# Posted on: 11-Feb-2011 08:09:15   

Thanks Matt,

It is now working with the following code:

 string searchTerm = languageTerm.ToUpper();
 IPredicateExpression filter = new PredicateExpression();
 FieldLikePredicate caseInSenstivefilter = new   FieldLikePredicate(LanguagetermFields.Languageterm, searchTerm);
 caseInSenstivefilter.CaseSensitiveCollation = true;
 filter.Add(caseInSenstivefilter);