key4.Sieve 24.3.0-a.15

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.
943
key4.Bus
Contracts, services and classes used for message queue synchronization of microservices.
1,355
key4.Bus
Contracts, services and classes used for message queue synchronization of microservices.
1,371
key4.Core
Services and classes.
933
key4.Core
Services and classes.
1,356
key4.Core
Services and classes.
1,368
key4.CQRS
CQRS Base NuGet
731
key4.CQRS
CQRS Base NuGet
895
key4.CQRS
CQRS Base NuGet
902
key4.CQRS
CQRS Base NuGet
1,043
key4.CQRS
CQRS Base NuGet
1,203
key4.CQRS
CQRS Base NuGet
1,347
key4.CQRS
CQRS Base NuGet
1,640
key4.CQRS
CQRS Base NuGet
2,953
key4.CQRS
CQRS Base NuGet
4,427
key4.Sieve.CustomField
Sieve for CustomField
718
key4.Sieve.CustomField
Sieve for CustomField
780
key4.Sieve.CustomField
Sieve for CustomField
921
key4.Sieve.CustomField
Sieve for CustomField
1,156
key4.Sieve.CustomField
Sieve for CustomField
2,791

Version Downloads Last updated
25.0.0-a.17 2 10/26/2026
24.3.0 344 09/22/2026
24.3.0-a.15 5 09/22/2026
24.2.0 200 08/21/2026
24.2.0-a.14 6 08/25/2026
24.2.0-a.13 7 08/24/2026
24.1.0 34 08/18/2026
24.1.0-a.8 7 07/29/2026
24.0.2 32 07/29/2026
24.0.2-a.9 8 07/29/2026
24.0.1 62 07/27/2026
24.0.1-a.6 7 07/28/2026
24.0.1-a.3 7 07/27/2026
24.0.0 9 07/24/2026
24.0.0-a.1 7 07/24/2026
16.1.0 6 07/21/2026
16.1.0-a.176 7 07/21/2026
16.0.0 1,950 03/18/2026
16.0.0-a.172 12 03/18/2026
15.1.0 675 02/07/2026
15.1.0-a.168 12 02/07/2026
15.0.0 905 10/28/2025
15.0.0-a.166 16 10/28/2025
15.0.0-a.165 12 10/28/2025
14.1.0 629 10/01/2025
14.1.0-a.154 17 10/01/2025
14.0.0 4,013 12/05/2024
14.0.0-a.151 24 12/05/2024
13.0.0 1,641 05/16/2024
13.0.0-a.174 11 04/29/2026
13.0.0-a.146 22 05/15/2024
12.1.0-a.145 22 05/15/2024
12.1.0-a.144 25 05/14/2024
12.1.0-a.143 25 05/14/2024
12.1.0-a.142 23 05/14/2024
12.1.0-a.141 28 05/14/2024
12.1.0-a.140 21 05/14/2024
12.1.0-a.139 22 05/14/2024
12.1.0-a.138 19 05/14/2024
12.1.0-a.137 22 05/07/2024
12.0.0 949 03/18/2024
12.0.0-a.135 25 03/18/2024
11.1.0 2,954 11/23/2023
11.1.0-a.133 25 11/23/2023
11.1.0-a.132 22 11/21/2023
11.1.0-a.131 24 11/21/2023
11.0.2 2,129 11/15/2023
11.0.2-a.130 23 11/20/2023
11.0.2-a.129 25 11/20/2023
11.0.2-a.127 21 11/15/2023
10.1.0 337 10/18/2023
10.1.0-a.118 23 10/18/2023
10.0.2 733 09/07/2023
10.0.2-a.116 22 10/17/2023
10.0.2-a.115 39 10/13/2023
10.0.2-a.114 21 10/13/2023
10.0.2-a.113 37 10/13/2023
10.0.2-a.112 31 10/12/2023
10.0.2-a.111 25 10/12/2023
10.0.2-a.110 21 10/12/2023
10.0.2-a.109 24 10/12/2023
10.0.2-a.108 26 10/12/2023
10.0.2-a.107 20 10/12/2023
10.0.2-a.105 21 09/07/2023
10.0.1 1,047 09/01/2023
10.0.1-a.103 23 09/01/2023
10.0.0 105 08/30/2023
10.0.0-a.101 20 08/30/2023
9.2.0 463 08/15/2023
9.2.0-a.98 23 08/15/2023
9.1.2 1,354 06/26/2023
9.1.1 237 06/07/2023
9.1.1-a.94 23 06/26/2023
9.1.1-a.93 21 06/20/2023
9.1.1-a.91 24 06/07/2023
9.1.1-a.90 22 06/07/2023
9.1.0 276 04/26/2023
9.1.0-a.89 23 05/31/2023
9.1.0-a.87 22 05/03/2023
9.0.1 278 04/14/2023
9.0.0 460 03/22/2023
9.0.0-a.78 25 03/22/2023
9.0.0-a.77 23 03/21/2023
9.0.0-a.76 22 03/21/2023
8.0.5 486 03/01/2023
8.0.4 160 02/21/2023
8.0.3 100 02/20/2023
8.0.3-a.70 23 02/20/2023
8.0.2 55 02/17/2023
8.0.0 29 02/16/2023
8.0.0-a.63 22 02/16/2023