WIDESEAWCS_Server/WIDESEAWCS_Core/BaseRepository/RepositoryBase.cs
@@ -517,8 +517,8 @@ orderByModels.Add(orderByModel); } int totalCount = 0; List<TEntity> list = _db.Queryable<TEntity>() .WhereIF(!string.IsNullOrEmpty(where), where).OrderBy(orderByModels).ToPageList(pageIndex, pageSize, ref totalCount); List<TEntity> list = _db.Queryable<TEntity>().OrderBy(orderByModels) .WhereIF(!string.IsNullOrEmpty(where), where).ToPageList(pageIndex, pageSize, ref totalCount); return new PageGridData<TEntity>(totalCount, list); }