craiggwilson/fluent-mongo — Issue #38: String equals method works, but strange
Author: justinalucard
Created: 2011-11-22 08:25:41+00:00
State: open

I tried to use the Equals method like this.
```c#
Collection.AsQueryable.FirstOrDefault(x => x.Username.Equals("justin", StringComparison.OrdinalIgnoreCase));
```
Throw an exception:
System.NotSupportedException : The string method Equals is not supported.

Ok.I change little above.
```c#
Func func = x => x.Username.Equals("justin", StringComparison.OrdinalIgnoreCase);
Collection.AsQueryable.FirstOrDefault(func);
```
It works fine.
Would someone can tell me why?