craiggwilson/fluent-mongo — Issue #34: ! operator(not) issue
Author: Osypchuk
Created: 2011-11-10 19:23:46+00:00
State: open

I discovered interesting issue with ! and bool variables.
Following code returns emtry result:

DocumentCollection.AsQueryable().Where(p=> !p.IsObsolete && p.IsPublished);

Such code works fine:
DocumentCollection.AsQueryable().Where(p=> (p.IsObsolete == false) && p.IsPublished);

Is it bug or feature? :)