XiHan.Framework.Domain 5.0.0-preview.1

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

XiHan.Framework.Domain

领域契约(Ring 2)。只有接口协议与零依赖的规约组合器,没有实体基类;实体按需组合协议。

契约 用途
IEntity<TKey>、IAggregateRoot<TKey> 标识与聚合根
IHasDomainEvents、IDomainEvent、DomainEventBuffer 领域事件的收集与清空
ISoftDeletable、IHasCreationTime、IHasModificationTime、IMultiTenant、IHasConcurrencyStamp 持久化子系统按协议自动维护的字段
IValueObject 值对象标记(用 record 获得值相等)
ISpecification<T>、Specification<T>、Specification.All<T>() / Specification.Of<T>() 查询规约与 And / Or / Not 组合
public sealed class Order : IAggregateRoot<Guid>, IMultiTenant, ISoftDeletable, IHasCreationTime
{
    private readonly DomainEventBuffer _events = new();
    public Guid Id { get; init; }
    public string TenantId { get; set; } = string.Empty;
    public bool IsDeleted { get; set; }
    public DateTimeOffset? DeletedAt { get; set; }
    public DateTimeOffset CreatedAt { get; set; }
    public IReadOnlyList<IDomainEvent> DomainEvents => _events.Items;
    public void ClearDomainEvents() => _events.Clear();
}

依赖方向

依赖 XiHan.Framework.Primitives。被持久化等子系统的抽象包引用。没有能力清单:纯编译期契约。

状态

P2:可用。

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 (4)

Showing the top 4 NuGet packages that depend on XiHan.Framework.Domain:

Package Downloads
XiHan.Framework.Data

曦寒框架数据访问库

XiHan.Framework.Application

曦寒框架领域驱动应用库

XiHan.Framework.Persistence.Abstractions

曦寒框架持久化抽象包

XiHan.Framework.Profiles.Standard

曦寒框架 Standard 组合包

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.0-rc.6 206 11/21/2026
5.0.0-rc.5 144 11/20/2026
5.0.0-rc.4 149 11/19/2026
5.0.0-rc.3 148 11/19/2026
5.0.0-rc.2 227 11/15/2026
5.0.0-rc.1 362 11/13/2026
5.0.0-preview.3 217 11/11/2026
5.0.0-preview.2 262 11/6/2026
5.0.0-preview.1 212 11/4/2026
4.8.0 252 10/22/2026
4.7.1 143 10/21/2026
4.7.0 179 10/15/2026
4.6.2 179 10/13/2026
4.6.1 362 10/3/2026
4.6.0 168 9/25/2026
4.5.0 147 9/23/2026
4.4.0 155 9/22/2026
4.3.0 170 9/12/2026
4.2.0 205 9/4/2026
4.1.0 179 8/31/2026
Loading failed