mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:33:27 +08:00
【修复】修复部分Repository层使用WithNolock属性未生效的问题。
This commit is contained in:
@@ -68,10 +68,11 @@ namespace CoreCms.Net.Repository
|
||||
fileUrl = p.fileUrl,
|
||||
userNickName = sc.nickName
|
||||
})
|
||||
.With(SqlWith.NoLock)
|
||||
.MergeTable()
|
||||
.OrderByIF(orderByExpression != null, orderByExpression, orderByType)
|
||||
.WhereIF(predicate != null, predicate)
|
||||
.With(SqlWith.NoLock).ToPageListAsync(pageIndex, pageSize, totalCount);
|
||||
.ToPageListAsync(pageIndex, pageSize, totalCount);
|
||||
else
|
||||
page = await DbClient.Queryable<CoreCmsInvoice, CoreCmsUser>((p, sc) => new JoinQueryInfos(
|
||||
JoinType.Left, p.userId == sc.id))
|
||||
|
||||
Reference in New Issue
Block a user