# 2022-03-14

### 1.3.9 开源社区版:
【修复】修复BaseRepository数据交互层仓储SqlWith.NoLock使用方式异常的问题。
### 0.2.8 专业版:
【新增】增加日历签到功能。实现通过日历签到获得积分,余额。【非破坏性无缝增加功能】
【新增】增加“连续签到周期”定时任务,用于根据后台的设置,实时重置清零用户连续签到计数。
【修复】修复BaseRepository数据交互层仓储SqlWith.NoLock使用方式异常的问题。
pull/197/head
JianWeie 3 years ago
parent ecb93aef80
commit 2386ee0ff3

@ -1023,7 +1023,7 @@ namespace CoreCms.Net.Repository
var totalCount = 0;
var page = blUseNoLock
? DbBaseClient.Queryable<T>().OrderByIF(!string.IsNullOrEmpty(orderBy), orderBy)
.WhereIF(predicate != null, predicate).Where(SqlWith.NoLock)
.WhereIF(predicate != null, predicate).With(SqlWith.NoLock)
.ToPageList(pageIndex, pageSize, ref totalCount)
: DbClient.Queryable<T>().OrderByIF(!string.IsNullOrEmpty(orderBy), orderBy)
.WhereIF(predicate != null, predicate).ToPageList(pageIndex, pageSize, ref totalCount);
@ -1047,7 +1047,7 @@ namespace CoreCms.Net.Repository
RefAsync<int> totalCount = 0;
var page = blUseNoLock
? await DbBaseClient.Queryable<T>().OrderByIF(!string.IsNullOrEmpty(orderBy), orderBy)
.WhereIF(predicate != null, predicate).Where(SqlWith.NoLock)
.WhereIF(predicate != null, predicate).With(SqlWith.NoLock)
.ToPageListAsync(pageIndex, pageSize, totalCount)
: await DbBaseClient.Queryable<T>().OrderByIF(!string.IsNullOrEmpty(orderBy), orderBy)
.WhereIF(predicate != null, predicate).ToPageListAsync(pageIndex, pageSize, totalCount);
@ -1072,7 +1072,7 @@ namespace CoreCms.Net.Repository
var totalCount = 0;
var page = blUseNoLock
? DbBaseClient.Queryable<T>().OrderByIF(orderByExpression != null, orderByExpression, orderByType)
.WhereIF(predicate != null, predicate).Where(SqlWith.NoLock)
.WhereIF(predicate != null, predicate).With(SqlWith.NoLock)
.ToPageList(pageIndex, pageSize, ref totalCount)
: DbBaseClient.Queryable<T>().OrderByIF(orderByExpression != null, orderByExpression, orderByType)
.WhereIF(predicate != null, predicate).ToPageList(pageIndex, pageSize, ref totalCount);
@ -1097,7 +1097,7 @@ namespace CoreCms.Net.Repository
RefAsync<int> totalCount = 0;
var page = blUseNoLock
? await DbBaseClient.Queryable<T>().WhereIF(predicate != null, predicate).OrderByIF(orderByExpression != null, orderByExpression, orderByType)
.Where(SqlWith.NoLock).ToPageListAsync(pageIndex, pageSize, totalCount)
.With(SqlWith.NoLock).ToPageListAsync(pageIndex, pageSize, totalCount)
: await DbBaseClient.Queryable<T>().WhereIF(predicate != null, predicate).OrderByIF(orderByExpression != null, orderByExpression, orderByType)
.ToPageListAsync(pageIndex, pageSize, totalCount);
var list = new PageList<T>(page, pageIndex, pageSize, totalCount);

Loading…
Cancel
Save