mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-04 15:30:53 +08:00
update
2
API.md
2
API.md
@@ -73,7 +73,7 @@
|
||||
| Attach | - | IEnumerable\<TEntity\> | 批量附加实体到状态管理 |
|
||||
| AttachOnlyPrimary | - | TEntity | 只附加实体的主键数据到状态管理 |
|
||||
| [SaveMany](https://github.com/2881099/FreeSql/wiki/%E8%81%94%E7%BA%A7%E4%BF%9D%E5%AD%98#savemany) | - | TEntity, string | 保存实体的指定 ManyToMany/OneToMany 导航属性(完整对比) |
|
||||
| BeginEdit | - | List\<TEntity\> | 准备编辑一个 List 实体 |
|
||||
| [BeginEdit](https://github.com/dotnetcore/FreeSql/wiki/%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 | 无 | 完成编辑数据,进行保存动作 |
|
||||
|
||||
> 状态管理,可实现 Update 只更新变化的字段(不更新所有字段),灵活使用 Attach 和 Update 用起来非常舒服。
|
||||
|
||||
@@ -169,7 +169,7 @@ SqlServer 提供的 output inserted 特性,在表使用了自增或数据库
|
||||
| Attach | - | IEnumerable\<TEntity\> | 批量附加实体到状态管理 |
|
||||
| AttachOnlyPrimary | - | TEntity | 只附加实体的主键数据到状态管理 |
|
||||
| [SaveMany](https://github.com/2881099/FreeSql/wiki/%E8%81%94%E7%BA%A7%E4%BF%9D%E5%AD%98#savemany) | - | TEntity, string | 保存实体的指定 ManyToMany/OneToMany 导航属性(完整对比) |
|
||||
| BeginEdit | - | List\<TEntity\> | 准备编辑一个 List 实体 |
|
||||
| [BeginEdit](https://github.com/dotnetcore/FreeSql/wiki/%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 | 无 | 完成编辑数据,进行保存动作 |
|
||||
|
||||
> 状态管理,可实现 Update 只更新变化的字段(不更新所有字段),灵活使用 Attach 和 Update 用起来非常舒服。
|
||||
|
||||
Reference in New Issue
Block a user