Jcg.Domain
1.0.1-alpha
This is a prerelease version of Jcg.Domain.
dotnet add package Jcg.Domain --version 1.0.1-alpha
NuGet\Install-Package Jcg.Domain -Version 1.0.1-alpha
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="Jcg.Domain" Version="1.0.1-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Jcg.Domain --version 1.0.1-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Jcg.Domain, 1.0.1-alpha"
#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 Jcg.Domain as a Cake Addin
#addin nuget:?package=Jcg.Domain&version=1.0.1-alpha&prerelease
// Install Jcg.Domain as a Cake Tool
#tool nuget:?package=Jcg.Domain&version=1.0.1-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Jcg.Domain
A library that abstracts some complexity from the domain layer, so the client code can better express intent.
It achieves this by decoupling the domain aggregate from the code that mutates its state and asserts invariant rules.
Dependencies
Net 7.0
Features
Domain Event Handlers Pipeline
- One stand-alone handler per domain event, that exists in its own class.
Invariant Rule Handlers Pipeline
- One stand-alone handler per invariant rule that exists in its own class.
Aggregate base class
- Has an aggregate version number increments each time a domain event is applied.
- Keeps track of all the domain events that were applied since the construction of the aggregate.
- Has a method to apply domain events.
Installing the package
NuGet:
install-package jcg.domain
DotNet
dotnet add package jcg.domain
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.1-alpha | 217 | 11/16/2022 |
1.0.0-alpha | 155 | 11/15/2022 |