This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
hummingbird
/
idgenerator
Not watched
Unwatch
Watch all
Watch but not notify
2
Star
0
Fork
0
Code
Releases
6
Wiki
Activity
Issues
5
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
增加YidHelper快速使用方法
tags/v1.0.0
zhouzj
4 years ago
parent
0f388ffcfc
commit
099db1bb94
2 changed files
with
9 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
README.md
+4
-0
src/Yitter.IdGenerator/YidHelper.cs
+ 5
- 0
README.md
View File
@@ -185,6 +185,11 @@ var options = new IdGeneratorOptions()
var newId = new YidGenerator(options).NewLong();
```
#### 单机快速使用
```
YidHelper.NewId();
```
#### options说明
```
public class IdGeneratorOptions
+ 4
- 0
src/Yitter.IdGenerator/YidHelper.cs
View File
@@ -28,6 +28,10 @@ namespace Yitter.IdGenerator
}
}
/// <summary>
/// 设置参数,建议程序初始化时执行一次
/// </summary>
/// <param name="options"></param>
public static void SetIdGenerator(IdGeneratorOptions options)
{
_IdGenInstance = new YidGenerator(options);
Write
Preview
Loading…
Cancel
Save