XeroAPI/XeroAPI.Net — Issue #8: repository.Contacts.Where(c => c.Name.Contains("M"));
Author: mattkemp
Created: 2011-12-06 08:21:51+00:00
State: open

running this
repository.Contacts.Where(c => c.Name.Contains("M"));

results in this:
The method 'Contains' can't currently be used in a XeroApi WHERE querystring.

In ApiQueryTranslator.cs I tried to quickly just move: case "Contains": up to line 40 (under case "Where":) but that just mangled it and I got the "is not a Boolean" error. (it modified the _query.Where to "Name(/"M/")".

Happy to look into this further and fix, but just want to make sure I'll be doing the right thing, and something worthwhile