IdIncrementGenerator 类
- 命名空间
- ShadowSql.Generators
- 程序集
- ShadowSql.Core.dll
Id自增标识生成器
public class IdIncrementGenerator : IIdentifierGenerator
- 继承
-
IdIncrementGenerator
- 实现
- 继承成员
构造函数
IdIncrementGenerator(string, int, int)
Id自增标识生成器
public IdIncrementGenerator(string prefix, int id = 0, int step = 1)
参数
属性
CurrentId
当前Id
public int CurrentId { get; }
属性值
Prefix
前缀
public string Prefix { get; }
属性值
Step
步长
public int Step { get; }
属性值
方法
NewName()
生成新标识
public string NewName()