Replies: 1 comment 1 reply
-
I have tried following: var mapper = new GridifyMapper<TrainDetails>(true)
.AddMap("schedule.start", p => p.Schedules.Select(x => x.Start))
.AddMap("schedule.end", p => p.Schedules.Select(x => x.End));
items.AsQueryable().ApplyFiltering("(schedule.end < schedule.start)", mapper); But the linq expression generated is: [Item].Where(p => ((p.Schedule!= null) AndAlso p.Schedules.Any(x => (Compare(x.End, "schedule.start", Ordinal) < 0)))) It seems that the field name on the position of value will not be mapped. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have following object definitions:
Now I want to find all
Item
s who has a schedule that itsEnd
time is beforeStart
time.With native LINQ I can do this:
So how can I achieve this using Gridify?
Beta Was this translation helpful? Give feedback.
All reactions