mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-05 07:50:52 +08:00
update
@@ -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
|
||||
|
||||
2
单表查询.md
2
单表查询.md
@@ -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)
|
||||
|
||||
2
多表查询.md
2
多表查询.md
@@ -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>()
|
||||
|
||||
2
返回数据.md
2
返回数据.md
@@ -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条处理。
|
||||
|
||||
2
骚操作.md
2
骚操作.md
@@ -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、你不知道的,指定字段返回
|
||||
|
||||
Reference in New Issue
Block a user