9.7 更新操作
功能移除声明
以下内容包含 Exists 单词的在 Furion 2.6.0 + 版本中已移除。
9.7.1 更新全部列(不立即提交)
// ==== 同步操作 ====
// 示例一
repository.Update(user);
// 示例二
user.Update();
// 示例三
repository.ChangeEntityState(user, EntityState.Modified);
// 示例四
repository.Entities.Update(user);
// ==== 异步操作 ====
// 示例一
await repository.UpdateAsync(user);
// 示例二
await user.UpdateAsync();
9.7.2 更新全部列(立即提交)
// ==== 同步操作 ====
// 示例一
repository.UpdateNow(user);
// 示例二
user.UpdateNow();
// ==== 异步操作 ====
// 示例一
await repository.UpdateNowAsync(user);
// 示例二
await user.UpdateNowAsync();
