Fermat.EntityFramework.Shared 0.0.1

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

Fermat.EntityFramework.Shared

Fermat.EntityFramework.Shared is a library that provides Entity Framework Core integration with advanced repository pattern implementation, query building, and data access utilities.

Features

  • Repository pattern implementation
  • Read/Write repository separation
  • Query building support
  • Pagination and sorting
  • Soft delete filtering
  • Audit logging
  • Aggregate root support
  • Model configuration

Installation

   dotnet add package Fermat.EntityFramework.Shared

Content

Repository Pattern

Core Interfaces
  • IRepository<TEntity, TKey>: Base repository interface

    • Basic CRUD operations
    • Entity tracking
    • Save changes
  • IReadRepository<TEntity, TKey>: Read-only repository interface

    • Query operations
    • Filtering
    • Sorting
    • Pagination
    • Include support
    • Projection support
  • IWriteRepository<TEntity, TKey>: Write-only repository interface

    • Insert operations
    • Update operations
    • Delete operations
    • Bulk operations
    • Transaction support
Repository Implementations
  • EfRepositoryBase<TEntity, TKey>: Base repository implementation

    • DbContext integration
    • Entity tracking
    • Change detection
    • Concurrency handling
  • ReadRepository<TEntity, TKey>: Read-only repository implementation

    • Query building
    • Filtering
    • Sorting
    • Pagination
    • Include support
    • Projection support
  • WriteRepository<TEntity, TKey>: Write-only repository implementation

    • Insert operations
    • Update operations
    • Delete operations
    • Bulk operations
    • Transaction support

Query Building

Queryable Extensions
  • ApplySort: Applies sorting to queryable

    • Single field sorting
    • Multiple field sorting
    • Dynamic sorting support
  • ToPageableAsync: Converts queryable to pageable resource

    • Page size control
    • Page number control
    • Total count calculation
    • Pagination metadata

DTOs

Pagination
  • PageableResponseMetaDto: Pagination metadata

    • Current page
    • Page size
    • Total pages
    • Total items
  • PageableResourceDto<T>: Pageable resource

    • Items
    • Total count
    • Pagination request
Sorting
  • SortRequestDto: Sort request parameters

    • Field name
    • Sort order
    • Validation
  • SortOrderTypes: Sort order types

    • Ascending
    • Descending

Usage

Repository Implementation

public class UserRepository : EfRepositoryBase<User, Guid>, IUserRepository
{
    public UserRepository(YourDbContext context) : base(context)
    {
    }

    public async Task<User> GetByEmailAsync(string email)
    {
        return await Query.GetAsync(x => x.Email == email);
    }
}

Features

  • Repository pattern implementation
  • Read/Write separation
  • Query building
  • Pagination and sorting
  • Soft delete filtering
  • Model configuration
  • Concurrency handling
  • Transaction support
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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 (5)

Showing the top 5 NuGet packages that depend on Fermat.EntityFramework.Shared:

Package Downloads
Fermat.EntityFramework.AuditLogs

A library that provides a comprehensive set of abstractions, base classes, and utilities for implementing audit logging in .NET applications.

Fermat.EntityFramework.SnapshotLogs

A Fermat package for logging HTTP requests using Entity Framework.

Fermat.EntityFramework.ExceptionLogs

A Fermat package for logging exceptions in Entity Framework Core using a database.

Fermat.EntityFramework.Identity

A Fermat package for integrating Entity Framework Core with Identity.

Fermat.EntityFramework.HttpRequestLogs

A library for managing HTTP request logs in .NET applications using Entity Framework Core.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.4 284 9/16/2025
0.0.3 195 9/7/2025
0.0.2 192 9/3/2025
0.0.1 187 7/27/2025