mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-12 11:20:56 +08:00
update
4
查询.md
4
查询.md
@@ -40,7 +40,7 @@ FreeSql在查询数据下足了功能,链式查询语法、多表查询、表
|
||||
| Take | \<this\> | int limit | 查询多少条数据 |
|
||||
| Page | \<this\> | int pageIndex, int pageSize | 分页 |
|
||||
| 【条件】 |
|
||||
| Where | \<this\> | Lambda | 支持多表查询表达式 |
|
||||
| Where | \<this\> | Lambda | 支持多表查询表达式,多次使用相当于AND |
|
||||
| WhereIf | \<this\> | bool, Lambda | 支持多表查询表达式 |
|
||||
| Where | \<this\> | string, parms | 原生sql语法条件,Where("id = ?id", new { id = 1 }) |
|
||||
| WhereIf | \<this\> | bool, string, parms | 原生sql语法条件,WhereIf(true, "id = ?id", new { id = 1 }) |
|
||||
@@ -51,7 +51,7 @@ FreeSql在查询数据下足了功能,链式查询语法、多表查询、表
|
||||
| Having | \<this\> | string, parms | 按原生sql语法聚合条件过滤,Having("count(name) = ?cc", new { cc = 1 }) |
|
||||
| Disdinct | \<this\> | | .Distinct().ToList(x => x.GroupName) 是对指定字段 |
|
||||
| 【排序】 |
|
||||
| OrderBy | \<this\> | Lambda | 按列排序,OrderBy(a => a.Time) |
|
||||
| OrderBy | \<this\> | Lambda | 按列排序,OrderBy(a => a.Time),可多次使用 |
|
||||
| OrderByDescending | \<this\> | Lambda | 按列倒向排序,OrderByDescending(a => a.Time) |
|
||||
| OrderBy | \<this\> | string, parms | 按原生sql语法排序,OrderBy("count(name) + ?cc", new { cc = 1 }) |
|
||||
| 【联表】 |
|
||||
|
||||
Reference in New Issue
Block a user