mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-04 07:20:51 +08:00
Updated Repository Layer (markdown)
@@ -182,12 +182,12 @@ Please view the documentation of [Cascade Saving](Cascade-Saving).
|
||||
| Update | - | IEnumerable\<TEntity\> | Update data in bulk |
|
||||
| InsertOrUpdate | - | TEntity | Insert ot update data in bulk |
|
||||
| FlushState | - | - | Clear status information |
|
||||
| Attach | - | TEntity | 附加实体到状态管理,可用于不查询就更新或删除 |
|
||||
| Attach | - | IEnumerable\<TEntity\> | 批量附加实体到状态管理 |
|
||||
| AttachOnlyPrimary | - | TEntity | 只附加实体的主键数据到状态管理 |
|
||||
| [SaveMany](%E8%81%94%E7%BA%A7%E4%BF%9D%E5%AD%98#savemany) | - | TEntity, string | 保存实体的指定 ManyToMany/OneToMany 导航属性(完整对比) |
|
||||
| [BeginEdit](%E6%B7%BB%E5%8A%A0%E6%88%96%E4%BF%AE%E6%94%B9#3beginedit-%E6%89%B9%E9%87%8F%E7%BC%96%E8%BE%91) | - | List\<TEntity\> | 准备编辑一个 List 实体 |
|
||||
| EndEdit | int | - | 完成编辑数据,进行保存动作 |
|
||||
| Attach | - | TEntity | Attach entities to state management, which can be used to update or delete without querying |
|
||||
| Attach | - | IEnumerable\<TEntity\> | Batch attach entities to state management |
|
||||
| AttachOnlyPrimary | - | TEntity | Only attach the primary key data of the entity to the state management |
|
||||
| [SaveMany](Cascade-Saving#savemany) | - | TEntity, string | Save the specified many-to-many or one-to-many navigation properties of the entity (full comparison) |
|
||||
| [BeginEdit](%E6%B7%BB%E5%8A%A0%E6%88%96%E4%BF%AE%E6%94%B9#3beginedit-%E6%89%B9%E9%87%8F%E7%BC%96%E8%BE%91) | - | List\<TEntity\> | Start editing the data of a set of entities |
|
||||
| EndEdit | int | - | After a set of data is edited, save it |
|
||||
|
||||
> State management can realize that `Update` only updates the changed fields (not all fields), and it is very comfortable to use `Attach` and `Update` flexibly.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user