RepositoryKit.Extensions 9.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package RepositoryKit.Extensions --version 9.0.2
                    
NuGet\Install-Package RepositoryKit.Extensions -Version 9.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RepositoryKit.Extensions" Version="9.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RepositoryKit.Extensions" Version="9.0.2" />
                    
Directory.Packages.props
<PackageReference Include="RepositoryKit.Extensions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RepositoryKit.Extensions --version 9.0.2
                    
#r "nuget: RepositoryKit.Extensions, 9.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RepositoryKit.Extensions@9.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RepositoryKit.Extensions&version=9.0.2
                    
Install as a Cake Addin
#tool nuget:?package=RepositoryKit.Extensions&version=9.0.2
                    
Install as a Cake Tool

<div align="center"> <img src="logo-64x64.png" width="120" alt="RepositoryKit logo" />

RepositoryKit.Extensions

Helper Extensions for LINQ (IQueryable & IEnumerable)

</div>


📦 Package

This package provides utility extensions for IQueryable and IEnumerable to simplify operations like pagination, sorting, chunking, and enumeration.


✨ Features

  • Paginate() — extension for paging IQueryable
  • OrderByField() — simplified dynamic ordering
  • Chunk() — split IEnumerable into subgroups
  • ForEach() — loop over elements with action

🧰 Usage

using RepositoryKit.Extensions;

var paged = queryableProducts.Paginate(1, 10);
var sorted = queryableProducts.OrderByField(p => p.Name);

var chunked = listOfItems.Chunk(50);
chunked.ForEach(chunk => Console.WriteLine(chunk.Count()));

📁 Included Extensions

IQueryableExtensions

query.Paginate(pageIndex: 2, pageSize: 10);
query.OrderByField(x => x.CreatedDate, descending: true);

IEnumerableExtensions

collection.Chunk(100);
collection.ForEach(x => Console.WriteLine(x));

📁 Requirements

  • .NET 9+
  • No external dependencies

📜 License

MIT © Ataberk Kaya


📎 This package is standalone and does not depend on other RepositoryKit modules

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on RepositoryKit.Extensions:

Package Downloads
RepositoryKit

Umbrella package for RepositoryKit - a modular repository pattern infrastructure that supports EF Core, MongoDB and clean LINQ extensions.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.0.3 155 6/3/2025
9.0.2 153 6/1/2025

Initial stable version with LINQ-focused helper methods compatible with .NET 9.