A number of columns in the database are stored in an encrypted format (and we are stuck with this for the foreseeable future)
http://localhost/Car?$filter=Name eq 'Ford'
I would like to intercept the query and update the filter so that it looks like "Name eq 'ENCRYPTED_TEXT'" so that the query can find the record in the database.
I had a look at queryOptions.Filter and this looks to be the right thing to modify, but I am unsure what is the best way to do this? Do I just need to de-construct the filter using string manipulation? or is there a better way? (I don't want to learn every oddity of odata query string parsing if I can avoid it)
FYI, I need to be able to do this for a couple of columns in every table I expose so a reusable c# solution is required.
Thanks for your help in advance! (Also asked on stackoverflow without an answer here)
Joe