Updated Pagination (markdown)

AlexLEWIS
2021-08-11 10:54:10 +08:00
parent 8b8deb3668
commit df0ca8239a

@@ -37,17 +37,17 @@ For `SqlServer 2012+` version, using the latest `fetch next rows` pagination;
| Methods | Return | Parameters | Description |
| ------------- | - | - | - |
| ToSql | string | | Return the SQL statement to be executed |
| ToList | List\<T1\> | | 执行SQL查询返回 T1 实体所有字段的记录,若存在导航属性则一起查询返回,记录不存在时返回 Count 为 0 的列表 |
| ToList\<T\> | List\<T\> | Lambda | 执行SQL查询返回指定字段的记录记录不存在时返回 Count 为 0 的列表 |
| ToList\<T\> | List\<T\> | string field | 执行SQL查询返回 field 指定字段的记录,并以元组或基础类型(int,string,long)接收,记录不存在时返回 Count 为 0 的列表 |
| ToList | List\<T1\> | | Execute SQL query, and return the records of all the fields of the `T1` entity. If there are navigation properties, they will be queried and returned together. If the record does not exist, a list with `Count` of `0` will be returned. |
| ToList\<T\> | List\<T\> | Lambda | Execute SQL query, and return the record of the specified fields. If the record does not exist, a list with `Count` of `0` will be returned. |
| ToList\<T\> | List\<T\> | string field | Execute SQL query, and return the record of the specified fields of the parameters, and receive it as a tuple or basic type (`int`, `string`, `long`). If the record does not exist, a list with `Count` of `0` will be returned. |
| 【Pagination】 |
| Count | long | | Number of records queried |
| Count | \<this\> | out long | The number of records to be queried, returned in the form of parameter with `out` |
| Skip | \<this\> | int offset | Query the number of rows shifted backward |
| Offset | \<this\> | int offset | Query the number of rows shifted backward |
| Limit | \<this\> | int limit | 查询多少条数据 |
| Take | \<this\> | int limit | 查询多少条数据 |
| Page | \<this\> | int pageIndex, int pageSize | 分页 |
| Limit | \<this\> | int limit | Number of query data |
| Take | \<this\> | int limit | Number of query data |
| Page | \<this\> | int pageIndex, int pageSize | Pagination |
## 参考资料