diff --git a/Repository-Layer.md b/Repository-Layer.md index e3a7d1a..39e964d 100644 --- a/Repository-Layer.md +++ b/Repository-Layer.md @@ -176,7 +176,7 @@ Please view the documentation of [Cascade Saving](Cascade-Saving). | Delete | int | Lambda | Delete data by lambda conditions | | Delete | int | TEntity | Query entity | | Delete | int | IEnumerable\ | Delete data in bulk | -| Insert | - | TEntity | 插入数据,若实体有自增列,插入后的自增值会填充到实体中 | +| Insert | - | TEntity | Insert data, if the entity has an auto-increment column, the auto-increment after insertion will be filled into the entity | | Insert | - | IEnumerable\ | Insert data in bulk | | Update | - | TEntity | Update entity | | Update | - | IEnumerable\ | Update data in bulk | @@ -186,7 +186,7 @@ Please view the documentation of [Cascade Saving](Cascade-Saving). | Attach | - | IEnumerable\ | 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\ | Start editing the data of a set of entities | +| [BeginEdit](Insert-or-Update#3-batch-editing-beginedit) | - | List\ | 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.