mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-06 16:30:52 +08:00
Updated Query from Multi Tables (markdown)
@@ -80,6 +80,7 @@ fsql.Select<Topic, Category, CategoryType>()
|
|||||||
|
|
||||||
## 3、WithoutJoin
|
## 3、WithoutJoin
|
||||||
|
|
||||||
|
```csharp
|
||||||
fsql.Select<Order, Product, User>()
|
fsql.Select<Order, Product, User>()
|
||||||
.InnerJoin((o, p, u) => o.UserId == u.Id)
|
.InnerJoin((o, p, u) => o.UserId == u.Id)
|
||||||
.LeftJoin((o, p, u) => o.ProductId == p.Id)
|
.LeftJoin((o, p, u) => o.ProductId == p.Id)
|
||||||
@@ -94,6 +95,7 @@ fsql.Select<Order, Product, User>()
|
|||||||
|
|
||||||
// includeProductInfo = true: SQL JOIN Product
|
// includeProductInfo = true: SQL JOIN Product
|
||||||
// includeProductInfo = false: SQL will not JOIN Product, ProductName will be "N/A"
|
// includeProductInfo = false: SQL will not JOIN Product, ProductName will be "N/A"
|
||||||
|
```
|
||||||
|
|
||||||
## 4. SQL join table
|
## 4. SQL join table
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user