key4.Sieve 24.0.0-a.1

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.
932
key4.Bus
Contracts, services and classes used for message queue synchronization of microservices.
1,155
key4.Bus
Contracts, services and classes used for message queue synchronization of microservices.
1,359
key4.Core
Services and classes.
921
key4.Core
Services and classes.
1,168
key4.Core
Services and classes.
1,348
key4.CQRS
CQRS Base NuGet
729
key4.CQRS
CQRS Base NuGet
891
key4.CQRS
CQRS Base NuGet
892
key4.CQRS
CQRS Base NuGet
1,038
key4.CQRS
CQRS Base NuGet
1,200
key4.CQRS
CQRS Base NuGet
1,344
key4.CQRS
CQRS Base NuGet
1,636
key4.CQRS
CQRS Base NuGet
2,949
key4.CQRS
CQRS Base NuGet
4,424
key4.Sieve.CustomField
Sieve for CustomField
715
key4.Sieve.CustomField
Sieve for CustomField
777
key4.Sieve.CustomField
Sieve for CustomField
918
key4.Sieve.CustomField
Sieve for CustomField
1,153
key4.Sieve.CustomField
Sieve for CustomField
2,788

.NET 10.0

Version Downloads Last updated
24.1.0-a.8 1 07/29/2026
24.0.2 2 07/29/2026
24.0.2-a.9 1 07/29/2026
24.0.1 37 07/27/2026
24.0.1-a.6 1 07/28/2026
24.0.1-a.3 1 07/27/2026
24.0.0 2 07/24/2026
24.0.0-a.1 1 07/24/2026
16.1.0 1 07/21/2026
16.1.0-a.176 1 07/21/2026
16.0.0 1,749 03/18/2026
16.0.0-a.172 7 03/18/2026
15.1.0 662 02/07/2026
15.1.0-a.168 7 02/07/2026
15.0.0 895 10/28/2025
15.0.0-a.166 12 10/28/2025
15.0.0-a.165 9 10/28/2025
14.1.0 624 10/01/2025
14.1.0-a.154 12 10/01/2025
14.0.0 4,008 12/05/2024
14.0.0-a.151 19 12/05/2024
13.0.0 1,638 05/16/2024
13.0.0-a.174 5 04/29/2026
13.0.0-a.146 18 05/15/2024
12.1.0-a.145 18 05/15/2024
12.1.0-a.144 19 05/14/2024
12.1.0-a.143 20 05/14/2024
12.1.0-a.142 19 05/14/2024
12.1.0-a.141 23 05/14/2024
12.1.0-a.140 17 05/14/2024
12.1.0-a.139 17 05/14/2024
12.1.0-a.138 17 05/14/2024
12.1.0-a.137 18 05/07/2024
12.0.0 945 03/18/2024
12.0.0-a.135 20 03/18/2024
11.1.0 2,950 11/23/2023
11.1.0-a.133 20 11/23/2023
11.1.0-a.132 19 11/21/2023
11.1.0-a.131 19 11/21/2023
11.0.2 2,125 11/15/2023
11.0.2-a.130 20 11/20/2023
11.0.2-a.129 20 11/20/2023
11.0.2-a.127 17 11/15/2023
10.1.0 333 10/18/2023
10.1.0-a.118 20 10/18/2023
10.0.2 729 09/07/2023
10.0.2-a.116 18 10/17/2023
10.0.2-a.115 34 10/13/2023
10.0.2-a.114 17 10/13/2023
10.0.2-a.113 32 10/13/2023
10.0.2-a.112 26 10/12/2023
10.0.2-a.111 19 10/12/2023
10.0.2-a.110 17 10/12/2023
10.0.2-a.109 21 10/12/2023
10.0.2-a.108 21 10/12/2023
10.0.2-a.107 17 10/12/2023
10.0.2-a.105 18 09/07/2023
10.0.1 1,045 09/01/2023
10.0.1-a.103 19 09/01/2023
10.0.0 102 08/30/2023
10.0.0-a.101 18 08/30/2023
9.2.0 459 08/15/2023
9.2.0-a.98 19 08/15/2023
9.1.2 1,349 06/26/2023
9.1.1 232 06/07/2023
9.1.1-a.94 19 06/26/2023
9.1.1-a.93 18 06/20/2023
9.1.1-a.91 20 06/07/2023
9.1.1-a.90 18 06/07/2023
9.1.0 272 04/26/2023
9.1.0-a.89 19 05/31/2023
9.1.0-a.87 19 05/03/2023
9.0.1 271 04/14/2023
9.0.0 456 03/22/2023
9.0.0-a.78 21 03/22/2023
9.0.0-a.77 19 03/21/2023
9.0.0-a.76 18 03/21/2023
8.0.5 482 03/01/2023
8.0.4 155 02/21/2023
8.0.3 97 02/20/2023
8.0.3-a.70 19 02/20/2023
8.0.2 51 02/17/2023
8.0.0 25 02/16/2023
8.0.0-a.63 18 02/16/2023