Replies: 2 comments 10 replies
-
Yes, this snippet should help, var gm = new GridifyMapper<Test>()
.GenerateMappings()
.AddMap("child", q => q.Children.Select(x => x.Id));
var actual = data.ApplyFiltering("id = 3, child = 3", gm).ToList(); |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My data structure looks like this :
class Test { int Id; List<Test> Children; }
List<Test> data = new();
I want to query the data for id=3 in the parent class and id=3 in the children
there should be many query conditions in the actual project, which roughly means that the parent class should be queried at the same time as the data that meets the conditions of the subclass
Beta Was this translation helpful? Give feedback.
All reactions