'Create Dynamic Expression one to many relations with child class property by dynamic-linq

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 ?

[Framework Url] https://github.com/zzzprojects/System.Linq.Dynamic.Core

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\"")
 


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source