-
-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] ParseException: Operator '==' incompatible with operand types 'ObjectId' and 'ObjectId' #94
Comments
Maybe when that Else can you provide the full class from |
|
I will take a look. |
Are you sure this is closed ? When I use this code : Result is : And then I have the error : I can understand it because there is no escape character for the date. Or maybe there is something I'm missing. |
When using this library with the MongoDB.Driver package, an error occurs with the
DynamicExpressionParser.ParseLambda
method while trying to compare an object containing anObjectId
property with anotherObjectId
object.This kind of comparison works fine inside a classic lambda expression (e.g.
entity => entity.Id == ObjectId.Parse(id)
) but it throws with the dynamic equivalent (e.g."it.Id == @0"
). Other operators doesn't work neither (>, <, >=, <=, !=) even though they are defined in the struct, but theEquals
method works fine.Code
Error
Stacktrace
The text was updated successfully, but these errors were encountered: