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" />
<PackageReference Include="RiverLi.DDD.Core" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=RiverLi.DDD.Core&version=1.0.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RiverLi.DDD.Core (核心领域类库)
概述 包含 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 | Versions 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.
-
net9.0
- MediatR (>= 14.0.0)
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.