mirror of
https://github.com/Biarity/Sieve.git
synced 2025-07-27 04:33:23 +02:00
Model data contract
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user