mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-06 08:20:52 +08:00
Updated 多表查询 (markdown)
2
多表查询.md
2
多表查询.md
@@ -61,7 +61,7 @@ fsql.Select<Topic>().From<Category, CategoryType>((s, b, c) => s
|
|||||||
//FROM `Topic` a
|
//FROM `Topic` a
|
||||||
//LEFT JOIN `Category` b ON a.`CategoryId` = b.`Id`
|
//LEFT JOIN `Category` b ON a.`CategoryId` = b.`Id`
|
||||||
//LEFT JOIN `CategoryType` c ON b.`ParentId` = c.`Id`
|
//LEFT JOIN `CategoryType` c ON b.`ParentId` = c.`Id`
|
||||||
WHERE c. `Id` > 0
|
//WHERE c. `Id` > 0
|
||||||
```
|
```
|
||||||
|
|
||||||
## 3、SQL联表
|
## 3、SQL联表
|
||||||
|
|||||||
Reference in New Issue
Block a user