mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-03 23:10:54 +08:00
Updated Repository Layer (markdown)
@@ -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\<TEntity\> | 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\<TEntity\> | Insert data in bulk |
|
||||
| Update | - | TEntity | Update entity |
|
||||
| Update | - | IEnumerable\<TEntity\> | Update data in bulk |
|
||||
@@ -186,7 +186,7 @@ Please view the documentation of [Cascade Saving](Cascade-Saving).
|
||||
| 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 |
|
||||
| [BeginEdit](Insert-or-Update#3-batch-editing-beginedit) | - | 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