mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-05 07:50:52 +08:00
update
@@ -37,7 +37,7 @@ fsql.Select<Area>().Where(a => a.Parent.Parent.Parent.Name == "中国").First();
|
||||
Define the Childs attribute, in the expression (subquery):
|
||||
|
||||
```csharp
|
||||
fsql.Select<Area>().Where(a => a.Childs.AsSelect().Any(c => c.Name == "北京")).First();
|
||||
fsql.Select<Area>().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.
|
||||
|
||||
Reference in New Issue
Block a user