update

2881099
2022-07-25 15:28:47 +08:00
parent 65a3a7310a
commit 08ee616ac2
9 changed files with 18 additions and 0 deletions

@@ -100,6 +100,8 @@ fsql.Select<Topic, Category, CategoryType>()
> Tip: `ISelect.ToSql` can be used with `WithSql`
> v3.2.666 [WithTempQuery + FromQuery Nested Query](%e5%b5%8c%e5%a5%97%e6%9f%a5%e8%af%a2)
## 4. SQL join table
```csharp

@@ -55,6 +55,8 @@ fsql.Select<Topic>()
> When `WithSql` is used multiple times, it will be converted to `UNION ALL` query
> v3.2.666 [WithTempQuery + FromQuery Nested Query](%e5%b5%8c%e5%a5%97%e6%9f%a5%e8%af%a2)
## Reference
- [《Query from Multi Tables》](Query-from-Multi-Tables)

@@ -123,6 +123,8 @@ fsql.Select<Topic>()
> When `WithSql` is used multiple times, `UNION ALL` query will be used
> v3.2.666 [WithTempQuery + FromQuery Nested Query](%e5%b5%8c%e5%a5%97%e6%9f%a5%e8%af%a2)
## ToChunk
Execute queries and return data in blocks, which can reduce memory overhead. For example, if 100,000 pieces of data are read, 100 pieces of data are returned for processing each time.

@@ -37,6 +37,8 @@ Different query results:
- Return `List<object>` and support paging.
- Return `List<TestClassDto>` and support paging.
> v3.2.666 [WithTempQuery + FromQuery 嵌套查询](%e5%b5%8c%e5%a5%97%e6%9f%a5%e8%af%a2)
### Return to DataTable with specified columns
```csharp

@@ -36,6 +36,8 @@
- 返回`List<object>` 且能支持分页
- 返回`List<TestClassDto>`且能支持分页
> v3.2.666 [WithTempQuery + FromQuery Nested Query](%e5%b5%8c%e5%a5%97%e6%9f%a5%e8%af%a2)
### 1.返回DataTable
```csharp

@@ -52,6 +52,8 @@ fsql.Select<Topic>()
> WithSql 使用多次为 UNION ALL 查询
> v3.2.666 [WithTempQuery + FromQuery 嵌套查询](%e5%b5%8c%e5%a5%97%e6%9f%a5%e8%af%a2)
## 参考资料
- [《多表查询》](%e5%a4%9a%e8%a1%a8%e6%9f%a5%e8%af%a2)

@@ -97,6 +97,8 @@ fsql.Select<Topic, Category, CategoryType>()
> 提示ISelect.ToSql 可与 WithSql 配合使用
> v3.2.666 [WithTempQuery + FromQuery 嵌套查询](%e5%b5%8c%e5%a5%97%e6%9f%a5%e8%af%a2)
## 4、SQL联表
```csharp
fsql.Select<Topic>()

@@ -109,6 +109,8 @@ fsql.Select<Topic>()
> WithSql 使用多次为 UNION ALL 查询
> v3.2.666 [WithTempQuery + FromQuery 嵌套查询](%e5%b5%8c%e5%a5%97%e6%9f%a5%e8%af%a2)
## 10、ToChunk
执行查询分块返回数据可减少内存开销。比如读取10万条数据每次返回100条处理。

@@ -86,6 +86,8 @@ fsql.Select<Topic>()
> WithSql 使用多次为 UNION ALL 查询
> v3.2.666 [WithTempQuery + FromQuery 嵌套查询](%e5%b5%8c%e5%a5%97%e6%9f%a5%e8%af%a2)
---
# 6、你不知道的指定字段返回