[CSHARP-926] LINQ queries don't work with fields/properties of type byte enum Created: 08/Mar/14 Updated: 22/Apr/15 Resolved: 22/Apr/15 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Linq |
| Affects Version/s: | 1.9 |
| Fix Version/s: | 2.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | zephuros | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | Rewrite Linq |
| Description |
|
To reproduce: enum Enum1:byte var query = |
| Comments |
| Comment by Craig Wilson [ 22/Apr/15 ] |
|
This has been fixed with |
| Comment by Ludmila Shako [X] [ 21/Mar/14 ] |
|
I've added a pull request here with a unit test: https://github.com/mongodb/mongo-csharp-driver/pull/179 |
| Comment by zephuros [ 17/Mar/14 ] |
|
I deleted the comment before after test carefully , collection.AsQueryable<B>().Where(b => b.c.e == Enum1.E1).ToList() |
| Comment by Craig Wilson [ 11/Mar/14 ] |
|
Hi zephuros, thanks for the report. I noticed you put Affects Version 1.9. Are you using 1.9.0-rc0 and came across this, or did you mean a different version? I only ask because I believe this would have been fixed with Thanks, |