DKNet.EfCore.Abstractions 9.0.3

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

DKNet.EfCore.Abstraction README

Welcome to DKNet.EfCore.Abstraction! This project provides a convenient abstraction layer for EF Core, designed to streamline common tasks and enhance maintainability and testability in your applications.

Project Overview

This abstraction layer is built on top of EF Core, offering a set of helper classes that abstract away complex aspects of data access. It simplifies everyday operations, allowing developers to focus on business logic while handling entity configuration, repository patterns, and caching seamlessly.

Purpose

Our goal is to make working with EF Core more efficient and less error-prone. The abstraction layer ensures that your code remains clean, easy to understand, and straightforward to maintain.

Features

  • Common Repository Operations: Handles CRUD (Create, Read, Update, Delete) operations.
  • Entity Configuration Management: Simplifies entity configuration by wrapping complex setups into reusable classes.
  • Transaction Handling: Manages transactions efficiently, reducing boilerplate code.
  • Caching Support: Facilitates caching strategies to improve performance and reduce the database load.

Requirements

Installation

  1. Clone the repository.
  2. Open your project in Visual Studio.
  3. Add the NuGet package to your project.

Usage

Integrate the abstraction layer into your application by using the provided repository classes. Here's an example snippet:

using DKNet.EfCore.Abstraction;

public class MyEntity : EntityBase<MyEntity>
{
    // Define entity properties and configurations in derived classes
}

public class MyRepository<T> : Repository<T, MyContext>
{
    public async Task<T> GetById(int id)
    {
        return await _repository.GetByIdAsync(id);
    }
}

Example

using DKNet.EfCore.Abstraction;

// Initialize the context with your EF Core configuration
var dbContext = new MyDbContext();
dbContext.Configure();

// Use the repository to perform operations
var repo = new MyRepository<MyEntity>(dbContext);

// Create an entity and save changes
MyEntity entity = new()
{
    Name = "John"
};
repo.AddAsync(entity);
await dbContext.SaveChangesAsync();

Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository.
  2. Create a feature branch for your changes.
  3. Commit your code with meaningful messages.
  4. Add tests to cover your changes.
  5. Submit a pull request.

Please follow our Code of Conduct and ensure your contributions are in line with the project's scope.

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 (3)

Showing the top 3 NuGet packages that depend on DKNet.EfCore.Abstractions:

Package Downloads
DKNet.EfCore.Extensions

Package Description

DKNet.EfCore.Repos.Abstractions

Package Description

DKNet.EfCore.Events

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.0.39 65 9/26/2025
9.0.38 145 9/24/2025
9.0.37 160 9/23/2025
9.0.36 197 9/23/2025
9.0.35 170 9/23/2025
9.0.34 173 9/23/2025
9.0.33 193 9/21/2025
9.0.32 183 9/21/2025
9.0.31 325 9/19/2025
9.0.30 322 9/18/2025
9.0.29 318 9/18/2025
9.0.28 337 9/17/2025
9.0.27 327 9/17/2025
9.0.26 323 9/16/2025
9.0.25 266 9/15/2025
9.0.24 256 9/15/2025
9.0.23 166 9/6/2025
9.0.22 205 9/3/2025
9.0.21 180 9/1/2025
9.0.20 205 7/15/2025
9.0.19 198 7/14/2025
9.0.18 203 7/14/2025
9.0.17 196 7/14/2025
9.0.16 175 7/11/2025
9.0.15 178 7/11/2025
9.0.14 176 7/11/2025
9.0.13 189 7/11/2025
9.0.12 200 7/8/2025
9.0.11 195 7/8/2025
9.0.10 197 7/7/2025
9.0.9 190 7/2/2025
9.0.8 189 7/2/2025
9.0.7 195 7/1/2025
9.0.6 198 6/30/2025
9.0.5 197 6/24/2025
9.0.4 196 6/24/2025
9.0.3 195 6/23/2025
9.0.2 199 6/23/2025
9.0.1 201 6/23/2025