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