VectorCode.DddCommon
1.2.2
dotnet add package VectorCode.DddCommon --version 1.2.2
NuGet\Install-Package VectorCode.DddCommon -Version 1.2.2
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="VectorCode.DddCommon" Version="1.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VectorCode.DddCommon" Version="1.2.2" />
<PackageReference Include="VectorCode.DddCommon" />
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 VectorCode.DddCommon --version 1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VectorCode.DddCommon, 1.2.2"
#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 VectorCode.DddCommon@1.2.2
#: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=VectorCode.DddCommon&version=1.2.2
#tool nuget:?package=VectorCode.DddCommon&version=1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
VectorCode.DddCommon
Common models for domain driven design
Basic terms
- Entity: An object that is not defined by its attributes, but rather by a thread of continuity and its identity. An entity is always in a valid state.
- Value Object: An object that contains attributes but has no conceptual identity. They should be treated as immutable. I suggest you use records for this.
- Dto: Data transfer object. It is an object that carries data between processes. It should be simple and contain no business logic. This library assumes that there is a 'full' dto for every entity which can be used for both transfer and storage.
- Repository: An object that abstracts the storage of entities. It should be used to retrieve and store entities.
- Aggregate Root: An entity that is the root of an aggregate. It is the only entity that can be accessed from outside the aggregate. You can ignore aggregate root if the logic help within BaseEntity is suitable for your needs.
- Domain Event: An event that is raised by an entity. It is used to communicate changes to other parts of the system. These events should be handle din your application layer
Thoughts on DDD
- Domain Entities (or aggregates) should be designed to be in a valid state at all times. This means that the entity should be responsible for ensuring that it is in a valid state.
Product | Versions 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
- VectorCode.Common (>= 1.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.