MiCake 10.0.0-preview.8

Prefix Reserved
This is a prerelease version of MiCake.
dotnet add package MiCake --version 10.0.0-preview.8
                    
NuGet\Install-Package MiCake -Version 10.0.0-preview.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="MiCake" Version="10.0.0-preview.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MiCake" Version="10.0.0-preview.8" />
                    
Directory.Packages.props
<PackageReference Include="MiCake" />
                    
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 MiCake --version 10.0.0-preview.8
                    
#r "nuget: MiCake, 10.0.0-preview.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.
#:package MiCake@10.0.0-preview.8
                    
#: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=MiCake&version=10.0.0-preview.8&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MiCake&version=10.0.0-preview.8&prerelease
                    
Install as a Cake Tool

MiCake

A lightweight Domain-Driven Design (DDD) toolkit for .NET.

Overview

MiCake is the main DDD package providing all essential components:

  • Entity & Aggregate Root - DDD tactical pattern implementations
  • Value Objects - Immutable value type support
  • Repository Pattern - Data access abstraction
  • Domain Events - Event-driven domain modeling
  • Unit of Work - Transaction management
  • Audit Support - Automatic timestamp tracking

Installation

dotnet add package MiCake

Quick Start

// Define your aggregate root
public class Order : AggregateRoot<Guid>
{
    public string CustomerName { get; private set; }
    public decimal TotalAmount { get; private set; }
    
    public void UpdateTotal(decimal amount)
    {
        TotalAmount = amount;
        AddDomainEvent(new OrderUpdatedEvent(Id));
    }
}

Key Components

Component Description
Entity<TKey> Base class for domain entities
AggregateRoot<TKey> Base class for aggregate roots
ValueObject Base class for value objects
IRepository<T> Repository interface for data access
IDomainEvent Interface for domain events

Documentation

📚 Full Documentation

License

MIT License - see LICENSE

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on MiCake:

Package Downloads
MiCake.EntityFrameworkCore

EF Core integration utilities for MiCake.

MiCake.AspNetCore

ASP.NET Core integration extensions for MiCake.

GitHub repositories

This package is not used by any popular GitHub repositories.