CRUDServiceBaseTEntity, TKey, TInput, TFilterRawExecuteUpdateAsync Method
执行更新实体 Update 语句的方法。
Namespace: QuickAdmin.Service.CRUDAssembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 2.0.13
protected virtual Task<IServiceResult<int>> RawExecuteUpdateAsync(
TInput input,
TEntity entity,
string[] propertiesToUpdate,
CancellationToken cancellationToken
)
- input TInput
- 实体输入 DTO。
- entity TEntity
- 要更新的实体。
- propertiesToUpdate string
- 指示要更新哪些属性。
- cancellationToken CancellationToken
- 用于取消操作的令牌。
TaskIServiceResultint服务调用结果。若成功,其数据为影响的行数。