update ZR.Models
This commit is contained in:
parent
5171ed2408
commit
d2e7ef5cfe
@ -1,30 +0,0 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace ZR.Model
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 分页扩展
|
|
||||||
/// </summary>
|
|
||||||
public static class PageExtension
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 读取列表
|
|
||||||
/// </summary>
|
|
||||||
/// <typeparam name="T"></typeparam>
|
|
||||||
/// <param name="source"></param>
|
|
||||||
/// <param name="parm"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public static PagedInfo<T> ToPage<T>(this List<T> source, PagerInfo parm)
|
|
||||||
{
|
|
||||||
var page = new PagedInfo<T>
|
|
||||||
{
|
|
||||||
TotalPage = parm.TotalPage,
|
|
||||||
TotalNum = parm.TotalNum,
|
|
||||||
PageSize = parm.PageSize,
|
|
||||||
PageIndex = parm.PageNum,
|
|
||||||
Result = source
|
|
||||||
};
|
|
||||||
return page;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -4,10 +4,6 @@
|
|||||||
<TargetFramework>netstandard2.1</TargetFramework>
|
<TargetFramework>netstandard2.1</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Remove="Extensions\QueryableExtension.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="EPPlus" Version="5.8.3" />
|
<PackageReference Include="EPPlus" Version="5.8.3" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||||
@ -18,7 +14,6 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Dto\" />
|
<Folder Include="Dto\" />
|
||||||
<Folder Include="Enum\" />
|
<Folder Include="Enum\" />
|
||||||
<Folder Include="Extensions\" />
|
|
||||||
<Folder Include="Vo\" />
|
<Folder Include="Vo\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user