DKNet.EfCore.Abstractions
9.0.3
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
<PackageReference Include="DKNet.EfCore.Abstractions" Version="9.0.3" />
<PackageVersion Include="DKNet.EfCore.Abstractions" Version="9.0.3" />
<PackageReference Include="DKNet.EfCore.Abstractions" />
paket add DKNet.EfCore.Abstractions --version 9.0.3
#r "nuget: DKNet.EfCore.Abstractions, 9.0.3"
#:package DKNet.EfCore.Abstractions@9.0.3
#addin nuget:?package=DKNet.EfCore.Abstractions&version=9.0.3
#tool nuget:?package=DKNet.EfCore.Abstractions&version=9.0.3
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
- .NET Version: 3.0 or higher
- EF Core Version: 7.x or later
- NuGet Package: Install DKNet.EfCore.Abstraction
Installation
- Clone the repository.
- Open your project in Visual Studio.
- 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:
- Fork the repository.
- Create a feature branch for your changes.
- Commit your code with meaningful messages.
- Add tests to cover your changes.
- Submit a pull request.
Please follow our Code of Conduct and ensure your contributions are in line with the project's scope.
Product | Versions 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. |
-
net9.0
- Meziantou.Analyzer (>= 2.0.202)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.EntityFrameworkCore.Abstractions (>= 9.0.6)
- System.ComponentModel.Annotations (>= 5.0.0)
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 |