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