Пример #1
0
 /// <summary>
 /// 生成静态分库的id
 /// </summary>
 /// <returns></returns>
 public long GeneralId()
 {
     return(IdentityGenerator.NextId());
 }
Пример #2
0
 public long GeneralId <TEntity>(IDynamicRouter router)
 {
     return(IdentityGenerator.NextId(GetDynamicDbConfig(typeof(TEntity), router).Number));
 }
Пример #3
0
 public long GerneralId(short number)
 {
     return(IdentityGenerator.NextId(number));
 }