From b86cfea0909dcf6d3f90be5e0114d036b8d65a0f Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@users.noreply.github.com> Date: Sun, 2 Aug 2020 02:12:05 +0800 Subject: [PATCH 1/5] Updated API (markdown) --- API.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/API.md b/API.md index c83b3dc..745ac76 100644 --- a/API.md +++ b/API.md @@ -40,8 +40,6 @@ | SetDbContextOptions | - | Action | 设置此 IFreeSql 下 DbContext 选项设置 | | [GetRepository](https://github.com/2881099/FreeSql/wiki/Repository)\ | BaseRepository | 无 | 返回默认仓库功能实现 | | [CreateUnitOfWork](https://github.com/2881099/FreeSql/wiki/%e5%b7%a5%e4%bd%9c%e5%8d%95%e5%85%83) | IUnitOfWork | 无 | 创建基于仓储功能的工作单元,务必使用 using 包含使用 | -| ToTreeList() | List\ | 无 | 将父子关系的数据以 TreeList 的形式返回 | -| AsTreeCte() | ISelect | (up, pathSelector, level) | 递归查询父子关系表 | --- @@ -171,6 +169,9 @@ DbContext 自身 = 完整事务,BaseRepository 不一定有事务(可通过 | WithLock | \ | Enum | SqlServer NoLock 等特有的设置 | | ForUpdate | \ | bool | 排他更新锁,对不同的数据库已作适配,详细说明见注释 | | AsQueryable | IQueryable | | 将 ISelect 转换为 IQueryable,此方法主要用于扩展,比如:abp IRepository GetAll() 接口方法需要返回 IQueryable 对象。注意:IQueryable 方法污染较为严重,请尽量避免此转换 | +| ToTreeList() | List\ | 无 | 将父子关系的数据以 TreeList 的形式返回 | +| AsTreeCte() | ISelect | (up, pathSelector, level) | 递归查询父子关系表 | + --- From 4ab2c114da93a41a15880c3d438426fc9205f01b Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@users.noreply.github.com> Date: Sun, 2 Aug 2020 02:21:50 +0800 Subject: [PATCH 2/5] =?UTF-8?q?Updated=20=E4=BA=8B=E5=8A=A1=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 事务.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/事务.md b/事务.md index 9451eef..77da578 100644 --- a/事务.md +++ b/事务.md @@ -68,7 +68,7 @@ fsql.Transaction(() => { ## 4、外部事务 -在外部开启事务的场景,可使用 WithTransaction 传入事务对象。 +在与其他开源项目一起协作时,当事务由外部开启的时候,可使用 WithTransaction 传入事务对象保持一致。 ```csharp await fsql.Update() From 51154eb2fcf9a43d14a1d238f7a2b80ec1adb7de Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@users.noreply.github.com> Date: Sun, 2 Aug 2020 02:23:37 +0800 Subject: [PATCH 3/5] =?UTF-8?q?Updated=20=E4=BA=8B=E5=8A=A1=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 事务.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/事务.md b/事务.md index 77da578..58275f4 100644 --- a/事务.md +++ b/事务.md @@ -68,7 +68,7 @@ fsql.Transaction(() => { ## 4、外部事务 -在与其他开源项目一起协作时,当事务由外部开启的时候,可使用 WithTransaction 传入事务对象保持一致。 +在与其他开源项目一起使用时,事务由外部开启,可此时可使用 WithTransaction 传入事务对象保持一致。 ```csharp await fsql.Update() From b0e3e20950bf9c25f3ceb50f63c7470d141b2a65 Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@users.noreply.github.com> Date: Sun, 2 Aug 2020 02:36:18 +0800 Subject: [PATCH 4/5] =?UTF-8?q?Updated=20=E6=9F=A5=E8=AF=A2=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 查询.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/查询.md b/查询.md index 5d656a1..22961dd 100644 --- a/查询.md +++ b/查询.md @@ -1,4 +1,4 @@ -FreeSql在查询数据下足了功能,链式查询语法、多表查询、表达式函数支持得非常到位。 +FreeSql在查询数据下足了功夫,链式查询语法、多表查询、表达式函数支持得非常到位。 - [《分页查询》](https://github.com/2881099/FreeSql/wiki/%e5%88%86%e9%a1%b5%e6%9f%a5%e8%af%a2) - [《单表查询》](https://github.com/2881099/FreeSql/wiki/%e5%8d%95%e8%a1%a8%e6%9f%a5%e8%af%a2) From 13acf69975d77b77de822d967305694b378d90a1 Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@users.noreply.github.com> Date: Sun, 2 Aug 2020 02:38:28 +0800 Subject: [PATCH 5/5] =?UTF-8?q?Updated=20=E6=9F=A5=E8=AF=A2=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 查询.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/查询.md b/查询.md index 22961dd..593fabd 100644 --- a/查询.md +++ b/查询.md @@ -123,4 +123,6 @@ fsql.Select().WhereDynamicFilter(dyfilter).ToList(); | WithConnection | \ | DbConnection | 设置连接对象 | | WithLock | \ | Enum | SqlServer NoLock 等特有的设置 | | ForUpdate | \ | bool | 排他更新锁,对不同的数据库已作适配,详细说明见注释 | -| AsQueryable | IQueryable | | 将 ISelect 转换为 IQueryable,此方法主要用于扩展,比如:abp IRepository GetAll() 接口方法需要返回 IQueryable 对象。注意:IQueryable 方法污染较为严重,请尽量避免此转换 | \ No newline at end of file +| AsQueryable | IQueryable | | 将 ISelect 转换为 IQueryable,此方法主要用于扩展,比如:abp IRepository GetAll() 接口方法需要返回 IQueryable 对象。注意:IQueryable 方法污染较为严重,请尽量避免此转换 | +| ToTreeList() | List\ | 无 | 将父子关系的数据以 TreeList 的形式返回 | +| AsTreeCte() | ISelect | (up, pathSelector, level) | 递归查询父子关系表 | \ No newline at end of file