mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-27 18:50:55 +08:00
update
3
返回数据.md
3
返回数据.md
@@ -107,6 +107,9 @@ fsql.Select<Song>().OrderBy(a => a.Id).ToChunk(100, done => {
|
|||||||
## 10、Dto 映射查询
|
## 10、Dto 映射查询
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
|
fsql.Select<Song>().ToList<Dto>();
|
||||||
|
//默认的映射查询,Dto 与 Song 属性名相同的被查询
|
||||||
|
|
||||||
fsql.Select<Song>().ToList(a => new DTO { xxx = a.ext })
|
fsql.Select<Song>().ToList(a => new DTO { xxx = a.ext })
|
||||||
//情况1:附加所有映射,再额外映射 ext,返回 List<DTO>
|
//情况1:附加所有映射,再额外映射 ext,返回 List<DTO>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user