XeroAPI/XeroAPI.Net — pull request #6 by bittercoder (2011-11-17 22:30:06+00:00)
Title: Rough fixes for a couple of issues I've encountered

I've found a couple of issues when using fields in queries that are automatically extracted from the where clause by the ApiQueryTranslator i.e. ElementNumber and ElementUpdatedDate properties, which result in either invalid expressions being generated, or values being incorrectly extracted when testing for null/not-null.

The fixes are pretty naive - If I had more time I would be inclined to write a separate visitor/expression rewriter for extracting the ElementId/ElementNumber/ElementUpdatedDate and rewriting expression to exclude that info / removing member expressions and parent binary expressions as necessary before it is passed onto the current ApiQueryTranslator, as that would keep things a little simpler to read/understand.

That said, Liking the Linq translator otherwise though :) nice and easy