Afic.Common.SnowflakeEntity
2026.10.41
dotnet add package Afic.Common.SnowflakeEntity --version 2026.10.41
NuGet\Install-Package Afic.Common.SnowflakeEntity -Version 2026.10.41
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="Afic.Common.SnowflakeEntity" Version="2026.10.41" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Afic.Common.SnowflakeEntity" Version="2026.10.41" />
<PackageReference Include="Afic.Common.SnowflakeEntity" />
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 Afic.Common.SnowflakeEntity --version 2026.10.41
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Afic.Common.SnowflakeEntity, 2026.10.41"
#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 Afic.Common.SnowflakeEntity@2026.10.41
#: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=Afic.Common.SnowflakeEntity&version=2026.10.41
#tool nuget:?package=Afic.Common.SnowflakeEntity&version=2026.10.41
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Afic.Common.SnowflakeEntity
Afic.Net 中以 long 为主键、由雪花算法生成主键的实体基类。
包内容
BaseSnowflakeEntityBaseCreationSnowflakeEntity/BaseModificationSnowflakeEntity/BaseDeletionSnowflakeEntityBaseNamedSnowflakeEntity/BaseNamedCreationSnowflakeEntity/BaseNamedModificationSnowflakeEntity/BaseNamedDeletionSnowflakeEntitySnowflakeEntityUtils:通过SetGeneratorId设置生成器编号,CreateId生成主键
创建、修改、删除类实体分别实现 IHaveCreation、IHaveModification、IHaveDeletion;
命名字段(Code / Name / Description / Notes)来自 BaseNamedSnowflakeEntity。
依赖:Afic.Common.LongIdEntity、Afic.Define.SnowflakeEntity、IdGen。
启动时请先调用
SnowflakeEntityUtils.SetGeneratorId(...),再创建实体;每个生成器编号在集群内必须唯一。
引用
<PackageReference Include="Afic.Common.SnowflakeEntity" Version="2026.10.32" />
| Product | Versions 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. 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.
-
net8.0
- Afic.Common.LongIdEntity (>= 2026.10.41)
- Afic.Define.SnowflakeEntity (>= 2026.10.41)
- IdGen (>= 3.0.7)
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 |
|---|---|---|
| 2026.10.41 | 111 | 10/31/2026 |
| 2026.10.40 | 101 | 10/30/2026 |
| 2026.10.38 | 107 | 10/28/2026 |
| 2026.10.37 | 102 | 10/27/2026 |
| 2026.10.36 | 107 | 10/26/2026 |
| 2026.10.35 | 106 | 10/26/2026 |
| 2026.10.34 | 99 | 10/26/2026 |
| 2026.10.33 | 99 | 10/26/2026 |