diff --git a/Parent-Child-Relationship-Query.md b/Parent-Child-Relationship-Query.md index 47d8046..78445d8 100644 --- a/Parent-Child-Relationship-Query.md +++ b/Parent-Child-Relationship-Query.md @@ -37,7 +37,7 @@ fsql.Select().Where(a => a.Parent.Parent.Parent.Name == "中国").First(); Define the Childs attribute, in the expression (subquery): ```csharp -fsql.Select().Where(a => a.Childs.AsSelect().Any(c => c.Name == "北京")).First(); +fsql.Select().Where(a => a.Childs.Any(c => c.Name == "北京")).First(); ``` To define the Childs property, you can also use [Cascade Saving](Cascade-Saving), [Greed Loading](Greed-Loading) and so on.