RiverLi.DDD.Core 1.0.9

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

RiverLi.DDD.Core (核心领域类库)

build

概述 包含 DDD 常用基类与接口,便于在微服务中统一领域模型与基础行为:领域事件、实体基类、仓储接口、审计字段与软删除等。

快速上手

  • 引用 RiverLi.DDD.Core,在实体继承 BaseEntity,并在领域操作完成后通过 IDomainEventPublisher 发布事件。

示例

public class Post : BaseEntity { public string Title { get; set; } }

// 注入仓储
public MyService(IRepository<Post, Guid> repo) { }

注意 此库为框架层,尽量保持轻量,避免引入大量外部依赖。

NuGet / Usage

Pack & publish:

dotnet pack -c Release
dotnet nuget push bin/Release/*.nupkg -k <API_KEY> -s <NUGET_URL>

Usage example:

<PackageReference Include="RiverLi.DDD.Core" Version="1.0.0" />
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on RiverLi.DDD.Core:

Package Downloads
RiverLi.Blog.Infrastructure

RiverLi.Blog 微服务集群的轻量级 DDD 核心包,提供领域层与应用层接口、基础实体、仓储契约与领域事件类型。不包含业务实现或运行时框架依赖。

RiverLi.Blog.Infrastructure.Shared

RiverLi.Blog 微服务集群 DDD 基础设施共享库 - 集成 EF Core、MassTransit、Redis、OpenTelemetry、Serilog、 健康检查、JWT 认证、MediatR 等企业级组件。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.9 129 7/11/2026
1.0.8 133 3/7/2026
1.0.7 111 3/7/2026
1.0.6 113 3/6/2026
1.0.5 129 2/10/2026
1.0.4 117 2/3/2026
1.0.3 140 2/1/2026
1.0.2 121 1/31/2026
1.0.1 119 1/31/2026
1.0.0 121 1/30/2026