mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-20 07:10:56 +08:00
update
1
API.md
1
API.md
@@ -157,6 +157,7 @@ DbContext 自身 = 完整事务,BaseRepository 不一定有事务(可通过
|
||||
| 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 }) |
|
||||
| OrderByPropertyName | string, bool | 按属性名字符串排序(支持导航属性) |
|
||||
| 【联表】 |
|
||||
| LeftJoin | \<this\> | Lambda | 左联查询,可使用导航属性,或指定关联的实体类型 |
|
||||
| InnerJoin | \<this\> | Lambda | 联接查询,可使用导航属性,或指定关联的实体类型 |
|
||||
|
||||
1
更新日志.md
1
更新日志.md
@@ -8,6 +8,7 @@
|
||||
- 增加 ISelect<11..16> 16 个联表查询;
|
||||
- 增加 ISelect Aggregate(lambda, out var result) 方法;
|
||||
- 增加 ISelect OrderByIf 方法 #446;
|
||||
- 增加 ISelect OrderByPropertyName 方法 #446 #278;
|
||||
- 增加 IUpdate/IDelete WhereIf 方法 #446;
|
||||
- **增加 ISelect/IInsert/IUpdate/IDelete CommandTimeout 方法设置命令超时;**
|
||||
- **增加 GlobalFilter.ApplyIf 创建动态过滤器;**
|
||||
|
||||
3
查询.md
3
查询.md
@@ -70,6 +70,8 @@ fsql.Select<VM_District_Parent>().WhereDynamicFilter(dyfilter).ToList();
|
||||
//WHERE (not((a.""Code"") LIKE '%val1%') AND not((a.""Name"") LIKE 'val2%') OR a__Parent.""Code"" = 'val11' AND (a__Parent.""Name"") LIKE '%val22%')
|
||||
```
|
||||
|
||||
> 动态排序:ISelect.OrderByPropertyName("Parent.Ocde")
|
||||
|
||||
## API
|
||||
|
||||
| 方法 | 返回值 | 参数 | 描述 |
|
||||
@@ -109,6 +111,7 @@ fsql.Select<VM_District_Parent>().WhereDynamicFilter(dyfilter).ToList();
|
||||
| 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 }) |
|
||||
| OrderByPropertyName | string, bool | 按属性名字符串排序(支持导航属性) |
|
||||
| 【联表】 |
|
||||
| LeftJoin | \<this\> | Lambda | 左联查询,可使用导航属性,或指定关联的实体类型 |
|
||||
| InnerJoin | \<this\> | Lambda | 联接查询,可使用导航属性,或指定关联的实体类型 |
|
||||
|
||||
Reference in New Issue
Block a user