Aethel.Extensions.Domain
1.0.1
See the version list below for details.
dotnet add package Aethel.Extensions.Domain --version 1.0.1
NuGet\Install-Package Aethel.Extensions.Domain -Version 1.0.1
<PackageReference Include="Aethel.Extensions.Domain" Version="1.0.1" />
paket add Aethel.Extensions.Domain --version 1.0.1
#r "nuget: Aethel.Extensions.Domain, 1.0.1"
// Install Aethel.Extensions.Domain as a Cake Addin #addin nuget:?package=Aethel.Extensions.Domain&version=1.0.1 // Install Aethel.Extensions.Domain as a Cake Tool #tool nuget:?package=Aethel.Extensions.Domain&version=1.0.1
Aethel Extensions Domain
Archivos base para el desarrollo de aplicaciones utilizando Domain Driven Design. Cada archivo permite la implementacion de objetos de valor, entidades, raices agregadas y soporte para generacion de eventos de dominio almacenados dentro de las entidades.
Componentes principales
Aggregate Root
Como primer objetivo tenemos la creacion de nuestras raices agregadas. Tan solo basta crear una clase que herede de AggregateRoot<Entity,TypeId>
public class NuestraRaizAgregada : AggregateRoot<NuestraRaizAgregada,string> {
// Propiedades
// Metodos
}
Al hacer esto, tenemos acceso a la implementacion interna para agregar y eliminar eventos de dominio almacenados dentro de la entidad para su posterior dispersion en el metodo que elija. Ademas de implementar automaticamente una propiedad del tipo especificado por el segundo parametro de la clase generica, asi como la comparacion de igualdad para entidades de dominio a traves del id y por referencia a traves de los metodos siguientes.
public override bool Equals(object obj);
public static bool operator ==(Entity<TEntity, TIdentifier> a, Entity<TEntity, TIdentifier> b);
public static bool operator !=(Entity<TEntity, TIdentifier> a, Entity<TEntity, TIdentifier> b);
public override int GetHashCode() => this.Id.GetHashCode();
Entity
Como segundo elemento de el diseño orientado al dominio, tenemos la definicion de entidades. Podemos hacer esto al implementar la clase abstracta Entity de la siguiente forma
public class NuestraEntidad : Entity<NuestraEntidad,string>{
// Propiedades
// Metodos
}
Justo asi tenemos acceso a las comprobaciones definidas para una entidad de dominio. Esta solo tiene el comportammiento esperado para definir la validez de una entidad de dominio, pero por si sola no puede generar eventos de dominio ni almacenarlos.
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. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- MediatR (>= 10.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Aethel.Extensions.Domain:
Package | Downloads |
---|---|
Aethel.Infrastructure.Hermes
Architecture and process for the collection of domain events and their implementation for immediate publication through MediatR and their late publication through Transactional Outbox |
GitHub repositories
This package is not used by any popular GitHub repositories.
Se agregan imagenes de paquete y un poco de documentacion acerca del contenido del paquete