RepositoryKit.Core 9.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package RepositoryKit.Core --version 9.0.2
                    
NuGet\Install-Package RepositoryKit.Core -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.Core" Version="9.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RepositoryKit.Core" Version="9.0.2" />
                    
Directory.Packages.props
<PackageReference Include="RepositoryKit.Core" />
                    
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.Core --version 9.0.2
                    
#r "nuget: RepositoryKit.Core, 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.Core@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.Core&version=9.0.2
                    
Install as a Cake Addin
#tool nuget:?package=RepositoryKit.Core&version=9.0.2
                    
Install as a Cake Tool

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

RepositoryKit.Core

Abstractions and Contracts for RepositoryKit

</div>


๐Ÿ“ฆ Package

This package defines the interfaces, contracts, and common abstractions that every RepositoryKit provider depends on.

It contains no external dependencies.


โœ… Interfaces

Interface Purpose
IRepository<T, TKey> Basic CRUD operations
IRepositoryQuery<T, TKey> Query: Find, GetById, Paged, Sorted
IRepositoryBulk<T> Bulk operations for add/update/delete

๐Ÿ“ Typical Usage

You don't use RepositoryKit.Core directly, but instead reference it from your repository implementation:

public class EFRepository<T, TKey> : IRepository<T, TKey>, IRepositoryQuery<T, TKey>, IRepositoryBulk<T>
{
    // ...
}

This way, you can swap out your data source while keeping your application code untouched.


๐Ÿงช Testing with Mocks

var mock = new Mock<IRepository<Product, Guid>>();
mock.Setup(repo => repo.GetByIdAsync(productId)).ReturnsAsync(product);

๐Ÿค Dependencies

  • No dependencies
  • Designed to be stable, lightweight, and fully mockable

๐Ÿ“œ License

MIT ยฉ Ataberk Kaya


๐Ÿ“Ž This package is automatically referenced by all RepositoryKit.* implementations

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.
  • net9.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on RepositoryKit.Core:

Package Downloads
RepositoryKit

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

RepositoryKit.EntityFramework

Entity Framework Core implementation of RepositoryKit. Implements IRepository, IRepositoryQuery and IRepositoryBulk using DbContext and DbSet.

RepositoryKit.Extensions

LINQ helper extensions for RepositoryKit. Adds support for Paginate, OrderByField, Chunk, and ForEach operations on IQueryable and IEnumerable.

RepositoryKit.MongoDB

MongoDB implementation of RepositoryKit. Implements IRepository, IRepositoryQuery and IRepositoryBulk using MongoClient and IMongoCollection.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.0.5 219 6/9/2025
9.0.4 211 6/9/2025
9.0.3 159 6/3/2025
9.0.2 155 6/1/2025

Initial stable version aligned with .NET 9. Provides unified repository contracts for any data source.