示例#1
0
文件: DbFactory.cs 项目: sachem1/IDDD
 /// <summary>
 /// 生成静态分库的id
 /// </summary>
 /// <returns></returns>
 public long GeneralId()
 {
     return(IdentityGenerator.NextId());
 }
示例#2
0
文件: DbFactory.cs 项目: sachem1/IDDD
 public long GeneralId <TEntity>(IDynamicRouter router)
 {
     return(IdentityGenerator.NextId(GetDynamicDbConfig(typeof(TEntity), router).Number));
 }
示例#3
0
文件: DbFactory.cs 项目: sachem1/IDDD
 public long GerneralId(short number)
 {
     return(IdentityGenerator.NextId(number));
 }