Aethel.Extensions.Domain 1.0.1

There is a newer version of this package available.
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                
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="Aethel.Extensions.Domain" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aethel.Extensions.Domain --version 1.0.1                
#r "nuget: Aethel.Extensions.Domain, 1.0.1"                
#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.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.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.

Version Downloads Last updated
2.0.1 2,967 3/10/2022
2.0.0 418 3/9/2022
1.0.2 980 2/15/2022
1.0.1 494 1/12/2022
1.0.0 2,343 1/12/2022

Se agregan imagenes de paquete y un poco de documentacion acerca del contenido del paquete