Closed mxmissile closed 1 year ago
For now, it requires the left and right in the expression tree. Below shoud work.
var items = cn.Query<Line>(x => x.Vw == true);
I'm confused, doesn't that evaluate the same (to true)?
It is, but UnaryExpression support of the library is not extensive as EF. There are other things that are not supported as well, like even a simple field comparisson like (e => e.Field1 != e.Field2)
.
We also issued some caveats on our Expression Trees documentation.
Therefore, whatever expression tree that is not supported would automatically be defaulted to the exception thrown on this post.
I understand, have you considered ReLinq to handle your expressions? https://github.com/re-motion/Relinq
I'm currently testing RepoDb to see if its a good fit for my project. However on my first test I am getting a
System.NotSupportedException: Expression 'x => x.Vw' is currently not supported.
:model:
simple test:
I'm probably missing something obvious!?