14 Replies
I have tried to replace it with
.GroupBy(item => predicate.ToUpper())
, but the result is x instead of the string inside of item.Name.predicate(item).ToUpper()
why is it an expression? ef core?Also regular
IEnumerable<T>
doesn't operate on Expression
(?)
Only IQueryable<T>
operates on Expression
sI have copied it from my generic ef methods. Seems to be a mistake
use
iqueryable
you also need expression expanding
I don't know how this works, but there's a package I know that could help
LinqKit
This works?
pretty sure no
If it's not an
Expression
, it will workbut it's not gonna run on the db if you convert the query to ienumerable
It wont run on ef I just want to convert and sort my current list
It works
Thanks for the help 🙂
If I convert it to iqueryable do I have to use the linqkit?
you use it to expand the expressions
without that library it's nastier
ah kk
thanks 🙂
You can replace item.Name with the predicate argument
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.