Domaincrafters.Domain 0.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package Domaincrafters.Domain --version 0.0.8
                    
NuGet\Install-Package Domaincrafters.Domain -Version 0.0.8
                    
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="Domaincrafters.Domain" Version="0.0.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Domaincrafters.Domain" Version="0.0.8" />
                    
Directory.Packages.props
<PackageReference Include="Domaincrafters.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 Domaincrafters.Domain --version 0.0.8
                    
#r "nuget: Domaincrafters.Domain, 0.0.8"
                    
#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.
#addin nuget:?package=Domaincrafters.Domain&version=0.0.8
                    
Install Domaincrafters.Domain as a Cake Addin
#tool nuget:?package=Domaincrafters.Domain&version=0.0.8
                    
Install Domaincrafters.Domain as a Cake Tool

domaincrafters domain ๐Ÿ›๏ธ

License

workflow GitHub Release NuGet

Quality Gate Status Coverage Code Smells

Domaincrafters/domain is a package designed to simplify the development of educational Domain-Driven Design (DDD) projects in .NET using C#. It provides essential domain constructs that embody DDD principles, including Entities, Repositories, and UUID-based Entity Identifiers. ๐Ÿ—๏ธ

Changelog

See the CHANGELOG for detailed information about changes in each version.

Features โœจ

  • Entity: An abstract base class representing domain entities with identity and equality methods.
  • Repository Interface: A generic interface defining standard operations for managing entities.
  • UUIDEntityId: An abstract class for UUID-based entity identifiers, ensuring unique and consistent IDs.
  • EntityId: An interface for entity identifiers, providing a common contract for entity ID types.

Installation ๐Ÿ“ฆ

In your .NET project, install the package from NuGet:

dotnet add package Domaincrafters.Domain

Then, in your C# file:

using System;
using DomainCrafters.Domain;

// Example EntityId using a UUID
public class MyEntityId : UUIDEntityId
{
    public MyEntityId(Guid value) : base(value) {}
}

// Example Entity
public class MyEntity : Entity<MyEntityId>
{
    public string Name { get; private set; }
    
    public MyEntity(MyEntityId id, string name) : base(id)
    {
        Name = name;
    }
}

// Example Repository Interface
public interface IMyEntityRepository : IRepository<MyEntity, MyEntityId>
{
    // Add your domain-specific methods here
}

Contributing ๐Ÿค

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/YourFeature.
  3. Commit your changes: git commit -m 'feat: Add new feature'.
  4. Push to the branch: git push origin feature/YourFeature.
  5. Open a pull request.

Please ensure your code adheres to the project's coding standards and includes relevant tests. ๐Ÿงช

Semantic Versioning with Conventional Commits ๐Ÿ”„

This project follows semantic versioning. To simplify the release process, we use conventional commits. Please ensure your commit messages follow the conventional commit format.

License ๐Ÿ“

This project is licensed under the MIT License.

Happy coding with domaincrafters domain! ๐Ÿš€โœจ


Emoticon Guide:

  • ๐Ÿš€: Represents the project's forward-thinking and dynamic nature.
  • ๐Ÿ—๏ธ: Indicates the building blocks provided by the package.
  • โœจ: Highlights features and important sections.
  • ๐Ÿ“ฆ: Symbolizes installation or packaging.
  • ๐Ÿ”‘: Relates to UUID functionality.
  • ๐Ÿ›๏ธ: Denotes domain entities and DDD concepts.
  • ๐Ÿ—„๏ธ: Represents the Repository interface and data management.
  • ๐Ÿค: Signifies collaboration and contributions.
  • ๐Ÿงช: Relates to testing and quality assurance.
  • ๐Ÿ“: Pertains to licensing information.

Feel free to adjust or add more emojis to better suit your project's personality and documentation style!

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.1.0 206 2/7/2025
0.0.9 84 1/27/2025
0.0.8 77 1/24/2025
0.0.7 82 1/14/2025
0.0.5 79 1/13/2025

Initial version with domain building blocks