key4.Sieve 15.1.0

Sieve

⚗️ 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/

Initialization

StartUp

You need to specific for which DbContext you want to add a K4SieveProcessor

public void ConfigureServices(IServiceCollection services)
{
    services.Configure<SieveOptions>(Configuration.GetSection(nameof(SieveOptions)));
    services.AddScoped<ISieveProcessor, K4SieveProcessor<MicroserviceDbContext>();
}

appsettings

{
  "SieveOptions": {
    "CaseSensitive": false,
    "DefaultPageSize": 25,
    "MaxPageSize": 100,
    "ThrowExceptions": true,
    "IgnoreNullsOnNotEqual": true
  }
}

Mapping

CreateMap<SieveModelRequestDto, SieveModel>();

Usage from api call

Operators

Operator Meaning
== Equals
!= Not equals
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
@= Contains
_= Starts with
!@= Does not Contains
!_= Does not Starts with
@=* Case-insensitive string Contains
_=* Case-insensitive string Starts with
==* Case-insensitive string Equals
!=* Case-insensitive string Not equals
!@=* Case-insensitive string does not Contains
!_=* Case-insensitive string does not Starts with

Notes:

  • You can use backslashes to escape special characters and sequences:
    • commas: Title@=some\,title makes a match with "some,title"
    • pipes: Title@=some\|title makes a match with "some|title"
    • null values: Title@=\null will search for items with title equal to "null" (not a missing value, but "null" -string literally)
  • You can have spaces anywhere except within {Name} or {Operator} fields

Showing the top 20 packages that depend on key4.Sieve.

Packages Downloads
key4.CQRS
CQRS Base NuGet
384
key4.CQRS
CQRS Base NuGet
454
key4.CQRS
CQRS Base NuGet
456
key4.CQRS
CQRS Base NuGet
563
key4.CQRS
CQRS Base NuGet
615
key4.CQRS
CQRS Base NuGet
725
key4.CQRS
CQRS Base NuGet
862
key4.CQRS
CQRS Base NuGet
887
key4.CQRS
CQRS Base NuGet
1,034
key4.CQRS
CQRS Base NuGet
1,195
key4.CQRS
CQRS Base NuGet
1,340
key4.CQRS
CQRS Base NuGet
1,617
key4.CQRS
CQRS Base NuGet
2,944
key4.CQRS
CQRS Base NuGet
4,417
key4.Sieve.CustomField
Sieve for CustomField
472
key4.Sieve.CustomField
Sieve for CustomField
711
key4.Sieve.CustomField
Sieve for CustomField
773
key4.Sieve.CustomField
Sieve for CustomField
914
key4.Sieve.CustomField
Sieve for CustomField
1,149
key4.Sieve.CustomField
Sieve for CustomField
2,784

.NET 9.0

Version Downloads Last updated
16.0.0 84 03/18/2026
16.0.0-a.172 1 03/18/2026
15.1.0 566 02/07/2026
15.1.0-a.168 1 02/07/2026
15.0.0 865 10/28/2025
15.0.0-a.166 7 10/28/2025
15.0.0-a.165 5 10/28/2025
14.1.0 618 10/01/2025
14.1.0-a.154 7 10/01/2025
14.0.0 4,001 12/05/2024
14.0.0-a.151 15 12/05/2024
13.0.0 1,619 05/16/2024
13.0.0-a.146 14 05/15/2024
12.1.0-a.145 14 05/15/2024
12.1.0-a.144 15 05/14/2024
12.1.0-a.143 16 05/14/2024
12.1.0-a.142 15 05/14/2024
12.1.0-a.141 19 05/14/2024
12.1.0-a.140 13 05/14/2024
12.1.0-a.139 13 05/14/2024
12.1.0-a.138 13 05/14/2024
12.1.0-a.137 14 05/07/2024
12.0.0 941 03/18/2024
12.0.0-a.135 16 03/18/2024
11.1.0 2,945 11/23/2023
11.1.0-a.133 16 11/23/2023
11.1.0-a.132 15 11/21/2023
11.1.0-a.131 15 11/21/2023
11.0.2 2,120 11/15/2023
11.0.2-a.130 16 11/20/2023
11.0.2-a.129 16 11/20/2023
11.0.2-a.127 13 11/15/2023
10.1.0 329 10/18/2023
10.1.0-a.118 16 10/18/2023
10.0.2 725 09/07/2023
10.0.2-a.116 14 10/17/2023
10.0.2-a.115 30 10/13/2023
10.0.2-a.114 13 10/13/2023
10.0.2-a.113 28 10/13/2023
10.0.2-a.112 22 10/12/2023
10.0.2-a.111 15 10/12/2023
10.0.2-a.110 13 10/12/2023
10.0.2-a.109 17 10/12/2023
10.0.2-a.108 17 10/12/2023
10.0.2-a.107 13 10/12/2023
10.0.2-a.105 14 09/07/2023
10.0.1 1,041 09/01/2023
10.0.1-a.103 15 09/01/2023
10.0.0 98 08/30/2023
10.0.0-a.101 14 08/30/2023
9.2.0 455 08/15/2023
9.2.0-a.98 15 08/15/2023
9.1.2 1,345 06/26/2023
9.1.1 228 06/07/2023
9.1.1-a.94 15 06/26/2023
9.1.1-a.93 14 06/20/2023
9.1.1-a.91 16 06/07/2023
9.1.1-a.90 14 06/07/2023
9.1.0 268 04/26/2023
9.1.0-a.89 15 05/31/2023
9.1.0-a.87 15 05/03/2023
9.0.1 267 04/14/2023
9.0.0 452 03/22/2023
9.0.0-a.78 17 03/22/2023
9.0.0-a.77 15 03/21/2023
9.0.0-a.76 14 03/21/2023
8.0.5 475 03/01/2023
8.0.4 151 02/21/2023
8.0.3 93 02/20/2023
8.0.3-a.70 15 02/20/2023
8.0.2 47 02/17/2023
8.0.0 21 02/16/2023
8.0.0-a.63 14 02/16/2023