Arks.Framework.Core.Domain 2.0.0

dotnet add package Arks.Framework.Core.Domain --version 2.0.0
                    
NuGet\Install-Package Arks.Framework.Core.Domain -Version 2.0.0
                    
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="Arks.Framework.Core.Domain" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Arks.Framework.Core.Domain" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Arks.Framework.Core.Domain" />
                    
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 Arks.Framework.Core.Domain --version 2.0.0
                    
#r "nuget: Arks.Framework.Core.Domain, 2.0.0"
                    
#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 Arks.Framework.Core.Domain@2.0.0
                    
#: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=Arks.Framework.Core.Domain&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Arks.Framework.Core.Domain&version=2.0.0
                    
Install as a Cake Tool

ArkaSoftware.Framework.Core.Domain

ArkaSoftware.Framework.Core.Domain is a library designed to provide core domain building blocks for implementing Domain-Driven Design (DDD) in .NET applications. It includes essential classes and interfaces for aggregates, entities, value objects, domain events, and exceptions.

Features

  • Core abstractions for Aggregate Roots and Entities.
  • Support for Value Objects with built-in examples (e.g., BusinessID, Description, Image).
  • Interfaces for Auditable Entities and Domain Events.
  • Domain-specific exceptions for robust error handling.
  • Designed for seamless integration with DDD-based applications.

Project Structure

Aggregates

  • AggregateRoot.cs: Base class for aggregate roots.
  • IAggregateRoot.cs: Interface for aggregate roots.

Entities

  • Entity.cs: Base class for domain entities.
  • IAuditableEntity.cs: Interface for auditable entities.

Events

  • IDomainEvent.cs: Interface for domain events.

Exceptions

  • DomainStateException.cs: Exception for invalid domain state.
  • InvalidEntityStateException.cs: Exception for invalid entity state.
  • InvalidValueObjectStateException.cs: Exception for invalid value object state.

Value Objects

  • BaseValueObjs.cs: Base class for value objects.
  • BusinessID.cs: Example value object for representing business IDs.
  • Description.cs: Example value object for entity descriptions.
  • Image.cs: Example value object for images.
  • PlId.cs: Example value object for unique identifiers.

Installation and Usage

  1. Add this library to your project:

    dotnet add package Arks.Framework.Core.Domain
    
  2. Use the provided base classes and interfaces to define your domain layer.

  3. Implement domain-specific logic using aggregates, entities, and value objects.

  4. Handle domain events using the IDomainEvent interface.


Contribution

If you want to contribute to this project:

  1. Fork the repository.
  2. Make your changes.
  3. Submit a Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Contact

For inquiries or issues, please reach out to your.email@example.com.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Arks.Framework.Core.Domain:

Package Downloads
Arks.Framework.Infra.Data.MSSQL.Command

Infrastructure library for MSSQL command handling using Entity Framework Core. Provides base classes, extensions, interceptors, and value converters for efficient database interactions.

Arks.Framework.Core.Contracts

A library defining core abstractions and contracts for .NET application services and data layers, supporting CQRS and DDD principles.

Arks.Framework.Endpoints.Web

A library for building robust and standardized web endpoints in .NET applications. Includes base controllers, middleware, filters, and extensions for simplifying API development.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 191 1/24/2025
1.0.0 260 1/24/2025