code/Athena0.0.1/common/Util/Web/PagedData.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Athena.common.Util.Web
{
public class PagedData : PagedData<object>
{
public PagedData()
: base()
{
}
public PagedData(List<object> dataList)
: base(dataList, 0)
{
}
public PagedData(List<object> dataList, int totalCount)
: base(dataList, totalCount, 0, 0)
{
}
public PagedData(List<object> dataList, int totalCount, int currentPage, int pageSize)
: base(dataList, totalCount, currentPage, pageSize)
{
}
public PagedData(Pagination paging)
: base(paging)
{
}
public PagedData(int currentPage, int pageSize)
: base(currentPage, pageSize)
{
}
public PagedData(int totalCount, int currentPage, int pageSize)
: base(new List<object>(), totalCount, currentPage, pageSize)
{
}
}
public class PagedData<T>
{
public PagedData()
: this(new List<T>())
{
}
public PagedData(List<T> dataList)
: this(dataList, 0)
{
}
public PagedData(List<T> dataList, int totalCount)
: this(dataList, totalCount, 0, 0)
{
}
public PagedData(List<T> dataList, int totalCount, int currentPage, int pageSize)
{
this.DataList = dataList;
this.TotalCount = totalCount;
this.CurrentPage = currentPage;
后面还有 36 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
