Closed captainDeezN closed 6 years ago
Hi, will fix it.
was having this same issue, I am using the entity framework in combination with QueryDesigner. When there are properties of the nullable type in the model, its crashing when filtering with: "System.InvalidCastException: 'Cannot convert value to type Nullable`1.'" inside: WhereExpression.cs --> GenerateExpressionOneField() on: Expression.Equal(). Inside Expression.Equal(), both expressions need to be of the same type. I managed to fix this with the following (in: WhereExpression.cs):
@BramscoChill wow, sorry for late answers, too busy :( Thanks for contribution, am will check this and will add to library :)
Fixed in 2.1.0-pre
Getting the above error when trying to filter using a property in my model class that is of type int.
Below is my filter declaration:
And this is a piece of my Model Class:
public int? QAApproverId { get; set; } [ForeignKey("QAApproverId")] public User QAApprover { get; set; }