Is it possible to create a dynamic where condition with a collection property? I'm trying to filter Parents which Childs.ChildProp1 == "test". What's the correct syntax ? https://dotnetfiddle.net/Zh7Jy5 ``` c# public class Parent { public string MasterProp1 { get; set; } public string MasterProp2 { get; set; } public IEnumerable<Child> Childs { get; set; } } public class Child { public string ChildProp1 { get; set; } public int ChildProp2 { get; set; } } Parents.Where("Childs.ChildProp1==\"test\"") ```
Activity
zspitz commentedon Feb 26, 2022
Do you want the
Parents who have aChildinChildswhoseChildProp1matches"test"?Or do you want all the
ChildswhoseChildProp1matches"test"?StefH commentedon Jun 4, 2023
@aysegulgurmeric Can you provide a working fiddle which represents this issue?
The fiddle you provided looks different?
StefH commentedon Sep 10, 2023
@aysegulgurmeric Can you provide a working fiddle which represents this issue?
The fiddle you provided looks different?