mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-06 16:30: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):
|
Define the Childs attribute, in the expression (subquery):
|
||||||
|
|
||||||
```csharp
|
```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.
|
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