key4.Sieve 24.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.Bus
Contracts, services and classes used for message queue synchronization of microservices.
935
key4.Bus
Contracts, services and classes used for message queue synchronization of microservices.
1,238
key4.Bus
Contracts, services and classes used for message queue synchronization of microservices.
1,363
key4.Core
Services and classes.
924
key4.Core
Services and classes.
1,251
key4.Core
Services and classes.
1,351
key4.CQRS
CQRS Base NuGet
730
key4.CQRS
CQRS Base NuGet
892
key4.CQRS
CQRS Base NuGet
899
key4.CQRS
CQRS Base NuGet
1,039
key4.CQRS
CQRS Base NuGet
1,201
key4.CQRS
CQRS Base NuGet
1,345
key4.CQRS
CQRS Base NuGet
1,637
key4.CQRS
CQRS Base NuGet
2,950
key4.CQRS
CQRS Base NuGet
4,425
key4.Sieve.CustomField
Sieve for CustomField
716
key4.Sieve.CustomField
Sieve for CustomField
778
key4.Sieve.CustomField
Sieve for CustomField
919
key4.Sieve.CustomField
Sieve for CustomField
1,154
key4.Sieve.CustomField
Sieve for CustomField
2,789

Version Downloads Last updated
24.2.0 175 08/21/2026
24.2.0-a.14 2 08/25/2026
24.2.0-a.13 2 08/24/2026
24.1.0 29 08/18/2026
24.1.0-a.8 4 07/29/2026
24.0.2 28 07/29/2026
24.0.2-a.9 4 07/29/2026
24.0.1 58 07/27/2026
24.0.1-a.6 4 07/28/2026
24.0.1-a.3 4 07/27/2026
24.0.0 5 07/24/2026
24.0.0-a.1 4 07/24/2026
16.1.0 4 07/21/2026
16.1.0-a.176 4 07/21/2026
16.0.0 1,833 03/18/2026
16.0.0-a.172 8 03/18/2026
15.1.0 670 02/07/2026
15.1.0-a.168 8 02/07/2026
15.0.0 902 10/28/2025
15.0.0-a.166 13 10/28/2025
15.0.0-a.165 10 10/28/2025
14.1.0 625 10/01/2025
14.1.0-a.154 13 10/01/2025
14.0.0 4,009 12/05/2024
14.0.0-a.151 20 12/05/2024
13.0.0 1,638 05/16/2024
13.0.0-a.174 7 04/29/2026
13.0.0-a.146 19 05/15/2024
12.1.0-a.145 19 05/15/2024
12.1.0-a.144 20 05/14/2024
12.1.0-a.143 21 05/14/2024
12.1.0-a.142 20 05/14/2024
12.1.0-a.141 24 05/14/2024
12.1.0-a.140 18 05/14/2024
12.1.0-a.139 18 05/14/2024
12.1.0-a.138 18 05/14/2024
12.1.0-a.137 19 05/07/2024
12.0.0 946 03/18/2024
12.0.0-a.135 21 03/18/2024
11.1.0 2,951 11/23/2023
11.1.0-a.133 21 11/23/2023
11.1.0-a.132 19 11/21/2023
11.1.0-a.131 20 11/21/2023
11.0.2 2,126 11/15/2023
11.0.2-a.130 21 11/20/2023
11.0.2-a.129 21 11/20/2023
11.0.2-a.127 18 11/15/2023
10.1.0 334 10/18/2023
10.1.0-a.118 21 10/18/2023
10.0.2 730 09/07/2023
10.0.2-a.116 19 10/17/2023
10.0.2-a.115 35 10/13/2023
10.0.2-a.114 18 10/13/2023
10.0.2-a.113 33 10/13/2023
10.0.2-a.112 27 10/12/2023
10.0.2-a.111 20 10/12/2023
10.0.2-a.110 18 10/12/2023
10.0.2-a.109 22 10/12/2023
10.0.2-a.108 22 10/12/2023
10.0.2-a.107 18 10/12/2023
10.0.2-a.105 19 09/07/2023
10.0.1 1,046 09/01/2023
10.0.1-a.103 20 09/01/2023
10.0.0 103 08/30/2023
10.0.0-a.101 19 08/30/2023
9.2.0 460 08/15/2023
9.2.0-a.98 20 08/15/2023
9.1.2 1,350 06/26/2023
9.1.1 233 06/07/2023
9.1.1-a.94 20 06/26/2023
9.1.1-a.93 19 06/20/2023
9.1.1-a.91 21 06/07/2023
9.1.1-a.90 19 06/07/2023
9.1.0 273 04/26/2023
9.1.0-a.89 20 05/31/2023
9.1.0-a.87 20 05/03/2023
9.0.1 272 04/14/2023
9.0.0 457 03/22/2023
9.0.0-a.78 22 03/22/2023
9.0.0-a.77 20 03/21/2023
9.0.0-a.76 19 03/21/2023
8.0.5 483 03/01/2023
8.0.4 156 02/21/2023
8.0.3 98 02/20/2023
8.0.3-a.70 20 02/20/2023
8.0.2 52 02/17/2023
8.0.0 26 02/16/2023
8.0.0-a.63 19 02/16/2023