mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-03-15 02:20:58 +08:00
Updated API (markdown)
5
API.md
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) | 递归查询父子关系表 |
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user