DeptServiceRawExecuteUpdateAsync Method
执行更新操作,已重写,处理了名称路径的更新。
Namespace: QuickAdmin.Service.AdminAssembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 3.0.0
protected override Task<IServiceResult<int>> RawExecuteUpdateAsync(
SysDeptInput input,
SysDept entity,
string[] propertiesToUpdate,
CancellationToken cancellationToken
)
- input SysDeptInput
- 部门输入 DTO。
- entity SysDept
- 正在更新的部门。
- propertiesToUpdate string
- 此参数已忽略。
- cancellationToken CancellationToken
- 用于取消操作的令牌。
TaskIServiceResultint服务调用结果。若成功,其数据为影响的行数。
已重写,只允许更新部分字段(ParentId、NodeLevel、IdPath 等是不允许更新的),并递归更新了 NamePath。