public static string GetIdKey <TBinaryInfo>(this TBinaryInfo binaryInfo, Expression <Func <TBinaryInfo, object> > selector) where TBinaryInfo : BinaryInfo, new() { var bodyExp = GetMemberExpBody(selector); var val = selector.Compile().Invoke(binaryInfo); var valStr = val is string s ? s : JsonConvert.SerializeObject(val); var partitionKey = $"{typeof(TBinaryInfo)}_{bodyExp.Member.Name}_{HashUtil.ComputeMd5Hash(valStr)}"; return(partitionKey); }