Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
1.9.1
-
None
-
.Net
Description
Reproduce steps:
// Query
|
hamsters.AsQueryable().OfType<Hamster>().Where(hamster => hamster.Color == Color.White).ToList();
|
|
// Types
|
public class Hamster
|
{
|
public ObjectId Id { get; private set; }
|
public Color Color { get; private set; }
|
|
|
public Hamster(Color color)
|
{
|
Color = color;
|
Id = ObjectId.GenerateNewId();
|
}
|
}
|
|
|
public enum Color : ushort
|
{
|
Black = 0,
|
White = 1,
|
}
|
|
|
|
|
Error:
Unsupported where clause: ((Int32)hamster.Color == 1).
|