/// <summary> /// 生成一批ID /// </summary> /// <typeparam name="T"></typeparam> /// <param name="count"></param> /// <returns></returns> public IEnumerable <long> GetSomeIds <T>(int count)// where T : EntityBase { return(Enumerable.Range(0, count).Select(index => SmallFlakes <T> .Oxidize())); }
/// <summary> /// 生成ID /// </summary> /// <typeparam name="T"></typeparam> /// <returns></returns> public long GetId <T>()// where T : EntityBase { return(SmallFlakes <T> .Oxidize()); }