RuoVea.ExIdGen
9.0.0
dotnet add package RuoVea.ExIdGen --version 9.0.0
NuGet\Install-Package RuoVea.ExIdGen -Version 9.0.0
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="RuoVea.ExIdGen" Version="9.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RuoVea.ExIdGen" Version="9.0.0" />
<PackageReference Include="RuoVea.ExIdGen" />
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 RuoVea.ExIdGen --version 9.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RuoVea.ExIdGen, 9.0.0"
#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 RuoVea.ExIdGen@9.0.0
#: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=RuoVea.ExIdGen&version=9.0.0
#tool nuget:?package=RuoVea.ExIdGen&version=9.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RuoVea.ExIdGen
介绍
IdGenerator 订单助手 唯一标识Id生成;IdGenerator 雪花漂移算法(支持数据中心ID和秒级时间戳),雪花漂移算法; 生成数值型Id、生成字符串Id、No 自动生成编号(201008251145409865)
1、快速入门
通过Nuget安装组件
Install-Package RuoVea.ExIdGen
2、使用示例
// 生成雪花 数值型 Id
long id = IdGenerator.Id;
// 生成雪花 字符型 Id
string id = IdGenerator.IdStr("demo");
// 自动生成编号 201008251145409865
string no = IdGenerator.No();
3、相关配置文件
{
"IdGenerator": {
/* 计器码 用于唯一Id 的生成 */
"WorkerId": 2,
/* 默认值6,取值范围 [3, 21](要求:序列数位长+机器码位长不超过22) */
"SeqBitLength": 6
}
}
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
- Microsoft.Extensions.Configuration.Binder (>= 9.0.7)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on RuoVea.ExIdGen:
Package | Downloads |
---|---|
RuoVea.ExSugar
Sqlsugar扩展 快速注入,支持简体中文、繁体中文、粤语、日语、法语、英语.使用方式:service.AddSqlsugar();继承RestFulLog 重写异常日志,操作日志,差异日志 |
|
RuoVea.ExWeb
CorsUrls、IPLimit、SafeIps、Jwt 配置 |
|
RuoVea.QuartzNetUI
QuartzNet UI界面 执行脚本地址:https://gitee.com/starry123/ruovea-quartznet-ui/tree/develop/Doc/Sql |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
9.0.0 | 413 | 7/25/2025 |
8.0.1 | 1,185 | 8/26/2024 |
8.0.0 | 432 | 11/24/2023 |
7.0.1 | 1,385 | 8/26/2024 |
7.0.0 | 176 | 7/23/2024 |
6.0.1 | 5,497 | 8/26/2024 |
6.0.0 | 2,321 | 2/9/2022 |
5.0.3 | 348 | 8/26/2024 |
5.0.2 | 3,679 | 11/25/2021 |
5.0.1 | 3,266 | 11/25/2021 |
2.1.1.1 | 163 | 11/24/2023 |
2.1.1 | 492 | 6/9/2022 |
2.0.0 | 122 | 9/22/2024 |