EntityAxis.Abstractions
1.0.0
dotnet add package EntityAxis.Abstractions --version 1.0.0
NuGet\Install-Package EntityAxis.Abstractions -Version 1.0.0
<PackageReference Include="EntityAxis.Abstractions" Version="1.0.0" />
<PackageVersion Include="EntityAxis.Abstractions" Version="1.0.0" />
<PackageReference Include="EntityAxis.Abstractions" />
paket add EntityAxis.Abstractions --version 1.0.0
#r "nuget: EntityAxis.Abstractions, 1.0.0"
#:package EntityAxis.Abstractions@1.0.0
#addin nuget:?package=EntityAxis.Abstractions&version=1.0.0
#tool nuget:?package=EntityAxis.Abstractions&version=1.0.0
EntityAxis.Abstractions
EntityAxis.Abstractions provides a lightweight set of interfaces and contracts for implementing generic CRUD (Create, Read, Update, Delete) operations across your application layer in a clean and consistent way. It is designed to support Clean Architecture and CQRS principles without taking on any infrastructure or framework dependencies.
✨ Features
- Common interfaces for query and command operations:
IGetById<TEntity, TKey>
ICreate<TEntity, TKey>
IUpdate<TEntity, TKey>
IDelete<TEntity, TKey>
- Fully generic with support for typed entity identifiers
- Flexible enough to support both anemic and rich domain models
- .NET Standard 2.0 support for wide compatibility
📦 Installation
dotnet add package EntityAxis.Abstractions
🧱 Example Usage
public class User : IEntityId<Guid>
{
public Guid Id { get; set; }
public string Email { get; set; }
}
Create an implementation of one of the interfaces:
public class InMemoryUserStore : IGetById<User, Guid>
{
private readonly Dictionary<Guid, User> _db = new();
public Task<User?> GetByIdAsync(Guid id, CancellationToken cancellationToken = default)
{
_db.TryGetValue(id, out var user);
return Task.FromResult(user);
}
}
Then plug it into your application services or handler logic.
🔗 Related Packages
- EntityAxis.MediatR: Generic MediatR handlers for Create/Read/Update/Delete
- EntityAxis.EntityFramework: Drop-in base classes for EF Core integration
- EntityAxis.Registration: Offers
IServiceCollection
extension methods to register handlers, validators, and mapping configuration easily in your DI container.
📜 License
This project is licensed under the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on EntityAxis.Abstractions:
Package | Downloads |
---|---|
EntityAxis.MediatR
MediatR-based command and query handlers for EntityAxis, a clean, flexible abstraction for generic CRUD operations using Clean Architecture principles. This package provides generic handlers for Create, Read, Update, and Delete operations, built to integrate cleanly with application layers using MediatR and AutoMapper. |
|
EntityAxis.Registration
Provides service registration helpers for adding command and query services that implement EntityAxis abstractions. Supports recursive registration and automatic discovery via reflection and assembly scanning. |
|
EntityAxis.EntityFramework
Provides a generic and extensible implementation of ICommandService and IQueryService using Entity Framework Core. Enables clean, testable data access logic with support for domain–to–database entity separation and AutoMapper integration. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.0.0 | 180 | 5/5/2025 |
0.2.0 | 152 | 5/4/2025 |
0.1.1 | 204 | 4/28/2025 |
0.1.0 | 226 | 4/13/2025 |
0.0.1-beta | 196 | 4/7/2025 |