Updated API (markdown)

2881099
2020-08-02 02:12:05 +08:00
parent 9279f24cd4
commit b86cfea090

5
API.md

@@ -40,8 +40,6 @@
| SetDbContextOptions | - | Action | 设置此 IFreeSql 下 DbContext 选项设置 |
| [GetRepository](https://github.com/2881099/FreeSql/wiki/Repository)\<TEntity, TKey\> | BaseRepository | 无 | 返回默认仓库功能实现 |
| [CreateUnitOfWork](https://github.com/2881099/FreeSql/wiki/%e5%b7%a5%e4%bd%9c%e5%8d%95%e5%85%83) | IUnitOfWork | 无 | 创建基于仓储功能的工作单元,务必使用 using 包含使用 |
| ToTreeList() | List\<TEntity\> | 无 | 将父子关系的数据以 TreeList 的形式返回 |
| AsTreeCte() | ISelect | (up, pathSelector, level) | 递归查询父子关系表 |
---
@@ -171,6 +169,9 @@ DbContext 自身 = 完整事务BaseRepository 不一定有事务(可通过
| WithLock | \<this\> | Enum | SqlServer NoLock 等特有的设置 |
| ForUpdate | \<this\> | bool | 排他更新锁,对不同的数据库已作适配,详细说明见注释 |
| AsQueryable | IQueryable | | 将 ISelect 转换为 IQueryable此方法主要用于扩展比如abp IRepository GetAll() 接口方法需要返回 IQueryable 对象。注意IQueryable 方法污染较为严重,请尽量避免此转换 |
| ToTreeList() | List\<TEntity\> | 无 | 将父子关系的数据以 TreeList 的形式返回 |
| AsTreeCte() | ISelect | (up, pathSelector, level) | 递归查询父子关系表 |
---