From 05abdbbf35176549da6a90b1ed3dba4fe4ad388a Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 23 May 2022 17:03:54 +0800 Subject: [PATCH] Update TranLock --- .../SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs index c8b19eb17..bc4968643 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs @@ -397,11 +397,11 @@ namespace SqlSugar { if (LockType == DbLockType.Wait) { - this.With("UpdLock,RowLock"); + this.With("WITH(UpdLock,RowLock)"); } else { - this.With("UpdLock,RowLock,NoWait"); + this.With("WITH(UpdLock,RowLock,NoWait)"); } } else