mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-24 22:42:30 +01:00
Model data contract
This commit is contained in:
parent
c7c89a5f02
commit
02e4fb55b4
@ -1,18 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Sieve.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class SieveModel : ISieveModel<IFilterTerm, ISortTerm>
|
||||
{
|
||||
[DataMember]
|
||||
public string Filters { get; set; }
|
||||
|
||||
[DataMember]
|
||||
public string Sorts { get; set; }
|
||||
|
||||
[Range(1, int.MaxValue)]
|
||||
[DataMember, Range(1, int.MaxValue)]
|
||||
public int? Page { get; set; }
|
||||
|
||||
[Range(1, int.MaxValue)]
|
||||
[DataMember, Range(1, int.MaxValue)]
|
||||
public int? PageSize { get; set; }
|
||||
|
||||
public List<IFilterTerm> FiltersParsed
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<Version>2.1.2</Version>
|
||||
<Version>2.1.3</Version>
|
||||
<Description>Sieve is a simple, clean, and extensible framework for .NET Core that adds sorting, filtering, and pagination functionality out of the box. Most common use case would be for serving ASP.NET Core GET queries. Documentation available on GitHub: https://github.com/Biarity/Sieve/
|
||||
</Description>
|
||||
<Copyright>Copyright 2018</Copyright>
|
||||
@ -10,7 +10,7 @@
|
||||
<PackageProjectUrl>https://github.com/Biarity/Sieve</PackageProjectUrl>
|
||||
<PackageIconUrl>https://emojipedia-us.s3.amazonaws.com/thumbs/240/twitter/120/alembic_2697.png</PackageIconUrl>
|
||||
<RepositoryUrl></RepositoryUrl>
|
||||
<PackageReleaseNotes>Fix issue #28</PackageReleaseNotes>
|
||||
<PackageReleaseNotes>Fix issue #30</PackageReleaseNotes>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
<Authors>Biarity</Authors>
|
||||
|
Loading…
Reference in New Issue
Block a user