EtBen.DataAccess.EF.Sql 2.1.0

dotnet add package EtBen.DataAccess.EF.Sql --version 2.1.0
                    
NuGet\Install-Package EtBen.DataAccess.EF.Sql -Version 2.1.0
                    
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="EtBen.DataAccess.EF.Sql" Version="2.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EtBen.DataAccess.EF.Sql" Version="2.1.0" />
                    
Directory.Packages.props
<PackageReference Include="EtBen.DataAccess.EF.Sql" />
                    
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 EtBen.DataAccess.EF.Sql --version 2.1.0
                    
#r "nuget: EtBen.DataAccess.EF.Sql, 2.1.0"
                    
#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 EtBen.DataAccess.EF.Sql@2.1.0
                    
#: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=EtBen.DataAccess.EF.Sql&version=2.1.0
                    
Install as a Cake Addin
#tool nuget:?package=EtBen.DataAccess.EF.Sql&version=2.1.0
                    
Install as a Cake Tool

🧱 EtBen.DataAccess.EF.Sql

A lightweight, extensible .NET 10 library implementing the Repository and Unit of Work patterns using Entity Framework Core.

NuGet License


πŸš€ Overview

EtBen.DataAccess.EF.Sql provides a structured and maintainable approach to data access in .NET applications.

It implements the Generic Repository and Unit of Work patterns, simplifying how your application interacts with Entity Framework Core while keeping your data layer testable, extensible, and cleanly separated from business logic.


✨ Features

  • 🧩 Generic Repository Interfaces β€” consistent data access across entities
  • βš™οΈ Repository Factory β€” simple integration with dependency injection
  • πŸ”„ Unit of Work Pattern β€” ensures transactional consistency
  • 🧠 Clean Architecture Ready β€” promotes separation of concerns
  • πŸ§ͺ Easily Testable β€” mock repositories for unit testing
  • πŸ’Ύ Supports CRUD operations for any entity type

πŸ—ΊοΈ EF Schematic

The EF Schematic is a companion project that visually represents the Entity Framework data model used by this library. It illustrates how entities, keys, and relationships are structured, helping developers quickly understand and extend the data architecture.

EFSchematic Repository


πŸ“¦ Installation

Install via NuGet:

dotnet add package EtBen.DataAccess.EF.Sql --version 2.1.0
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0 123 3/19/2026
2.0.0 123 1/19/2026
1.0.2 186 11/7/2025
1.0.1 281 11/6/2025 1.0.1 is deprecated.

Release 2.1.0:
- Updated Microsoft.EntityFrameworkCore and Microsoft.EntityFrameworkCore.SqlServer to version 10.0.5.
- Updated repository and unit of work implementations to use async functions.