Updated Query Data (markdown)

AlexLEWIS
2021-08-20 11:22:39 +08:00
parent 7c3bd89b69
commit b9b06f2cb4

@@ -60,11 +60,11 @@ fsql.Select<VM_District_Parent>().WhereDynamicFilter(dyfilter).ToList();
| 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 的列表 |
| ToOne | T1 | | 执行SQL查询返回 T1 实体所有字段的第一条记录,记录不存在时返回 null |
| ToAggregate\<T\> | List\<T\> | Lambda | 执行SQL查询返回指定字段的聚合结果适合不需要 GroupBy 的场景) |
| ToList | List\<T1\> | | Execute SQL query and return the records of all fields of the `T1` entity. If there are navigation properties, they will be queried and returned together. If the record does not exist, it will return a list with `Count` being `0` |
| ToList\<T\> | List\<T\> | Lambda | Execute SQL query, return the record of the specified field, if the record does not exist, return the list with `Count` as `0` |
| ToList\<T\> | List\<T\> | string field | Execute SQL query, return the record of the field specified by field, and receive it as a tuple or basic type (int, string, long). If the record does not exist, return a list with `Count` as `0` |
| ToOne | T1 | | Execute SQL query and return the first record of all fields of the `T1` entity, or `null` if the record does not exist |
| ToAggregate\<T\> | List\<T\> | Lambda | Execute SQL query and return the aggregated result of the specified field (suitable for scenarios where `GroupBy` is not needed) |
| Any | bool | | Execute SQL query, if there are records, return true, otherwise return false. |
| Sum | T | Lambda | Specify a column and calculate the sum. |
| Min | T | Lambda | Specify a column and calculate the minimum value. |