mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-10 18:30:55 +08:00
Updated API (markdown)
1
API.md
1
API.md
@@ -135,6 +135,7 @@ DbContext 自身 = 完整事务,BaseRepository 不一定有事务(可通过
|
||||
| ToList\<T\> | List\<T\> | Lambda | 执行SQL查询,返回指定字段的记录,记录不存在时返回 Count 为 0 的列表 |
|
||||
| ToList\<T\> | List\<T\> | string field | 执行SQL查询,返回 field 指定字段的记录,并以元组或基础类型(int,string,long)接收,记录不存在时返回 Count 为 0 的列表 |
|
||||
| ToOne | T1 | | 执行SQL查询,返回 T1 实体所有字段的第一条记录,记录不存在时返回 null |
|
||||
| ToChunkAsyncEnumerable | IAsyncEnumerable\<List\<T1\>\> | int | 分段返回 T1 记录 |
|
||||
| Any | bool | | 执行SQL查询,是否有记录 |
|
||||
| Sum | T | Lambda | 指定一个列求和 |
|
||||
| Min | T | Lambda | 指定一个列求最小值 |
|
||||
|
||||
Reference in New Issue
Block a user