update

28810
2020-09-18 12:25:53 +08:00
parent f87ac8bf1d
commit 243a94d76d
3 changed files with 5 additions and 0 deletions

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 | 联接查询,可使用导航属性,或指定关联的实体类型 |

@@ -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 创建动态过滤器;**

@@ -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 | 联接查询,可使用导航属性,或指定关联的实体类型 |