key4.Sieve 15.0.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
326
key4.CQRS
CQRS Base NuGet
381
key4.CQRS
CQRS Base NuGet
451
key4.CQRS
CQRS Base NuGet
453
key4.CQRS
CQRS Base NuGet
484
key4.CQRS
CQRS Base NuGet
518
key4.CQRS
CQRS Base NuGet
722
key4.CQRS
CQRS Base NuGet
884
key4.CQRS
CQRS Base NuGet
1,031
key4.CQRS
CQRS Base NuGet
1,188
key4.CQRS
CQRS Base NuGet
1,337
key4.CQRS
CQRS Base NuGet
1,607
key4.CQRS
CQRS Base NuGet
2,941
key4.CQRS
CQRS Base NuGet
4,344
key4.Sieve.CustomField
Sieve for CustomField
302
key4.Sieve.CustomField
Sieve for CustomField
708
key4.Sieve.CustomField
Sieve for CustomField
770
key4.Sieve.CustomField
Sieve for CustomField
911
key4.Sieve.CustomField
Sieve for CustomField
1,140
key4.Sieve.CustomField
Sieve for CustomField
2,781

.NET 9.0

Version Downloads Last updated
15.0.0 487 10/28/2025
15.0.0-a.166 4 10/28/2025
15.0.0-a.165 2 10/28/2025
14.1.0 521 10/01/2025
14.1.0-a.154 4 10/01/2025
14.0.0 3,969 12/05/2024
14.0.0-a.151 12 12/05/2024
13.0.0 1,609 05/16/2024
13.0.0-a.146 11 05/15/2024
12.1.0-a.145 11 05/15/2024
12.1.0-a.144 12 05/14/2024
12.1.0-a.143 13 05/14/2024
12.1.0-a.142 12 05/14/2024
12.1.0-a.141 16 05/14/2024
12.1.0-a.140 10 05/14/2024
12.1.0-a.139 10 05/14/2024
12.1.0-a.138 10 05/14/2024
12.1.0-a.137 11 05/07/2024
12.0.0 938 03/18/2024
12.0.0-a.135 13 03/18/2024
11.1.0 2,942 11/23/2023
11.1.0-a.133 13 11/23/2023
11.1.0-a.132 12 11/21/2023
11.1.0-a.131 12 11/21/2023
11.0.2 2,113 11/15/2023
11.0.2-a.130 13 11/20/2023
11.0.2-a.129 13 11/20/2023
11.0.2-a.127 10 11/15/2023
10.1.0 326 10/18/2023
10.1.0-a.118 13 10/18/2023
10.0.2 722 09/07/2023
10.0.2-a.116 11 10/17/2023
10.0.2-a.115 27 10/13/2023
10.0.2-a.114 11 10/13/2023
10.0.2-a.113 25 10/13/2023
10.0.2-a.112 19 10/12/2023
10.0.2-a.111 12 10/12/2023
10.0.2-a.110 10 10/12/2023
10.0.2-a.109 14 10/12/2023
10.0.2-a.108 14 10/12/2023
10.0.2-a.107 10 10/12/2023
10.0.2-a.105 11 09/07/2023
10.0.1 1,038 09/01/2023
10.0.1-a.103 12 09/01/2023
10.0.0 95 08/30/2023
10.0.0-a.101 11 08/30/2023
9.2.0 452 08/15/2023
9.2.0-a.98 12 08/15/2023
9.1.2 1,342 06/26/2023
9.1.1 225 06/07/2023
9.1.1-a.94 12 06/26/2023
9.1.1-a.93 11 06/20/2023
9.1.1-a.91 13 06/07/2023
9.1.1-a.90 11 06/07/2023
9.1.0 265 04/26/2023
9.1.0-a.89 12 05/31/2023
9.1.0-a.87 12 05/03/2023
9.0.1 264 04/14/2023
9.0.0 449 03/22/2023
9.0.0-a.78 14 03/22/2023
9.0.0-a.77 12 03/21/2023
9.0.0-a.76 11 03/21/2023
8.0.5 472 03/01/2023
8.0.4 149 02/21/2023
8.0.3 90 02/20/2023
8.0.3-a.70 12 02/20/2023
8.0.2 44 02/17/2023
8.0.0 17 02/16/2023
8.0.0-a.63 11 02/16/2023