1.04 #2
@ -254,8 +254,9 @@ public class OrderRepository : BasicRepository<OrderEntity>, IOrderRepository, I
|
||||
{
|
||||
using var tran = TransactionHelper.GetReadCommitted();
|
||||
|
||||
// 更新订单主表(Upsert 业务字段;勿只更 Customer/AppKey)
|
||||
await UpdateAsync(order, x => new
|
||||
// 注意:UpdateAsync(entity, cols) 的 cols 是 IgnoreColumns;
|
||||
// 指定要更新的列必须用 UpdateColumnAsync。
|
||||
await UpdateColumnAsync(order, x => new
|
||||
{
|
||||
x.Customer,
|
||||
x.AppKey,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user