public override string GetPartitionKey(string rowKey)
        {
            var hash    = rowKey.GetBytes().HashXX32();
            var hashStr = hash.ToString("X");

            return(RowKeyPrefixAttribute.GetValue(hashStr, this.Characters));
        }
Пример #2
0
        public string MutateKey(string currentKey, MemberInfo memberInfo, object memberValue, out bool ignore)
        {
            var idKey = RowKey(memberInfo.GetMemberType(), memberValue, this.GetType());

            if (idKey.IsNullOrWhiteSpace())
            {
                ignore = true;
                return(null);
            }

            ignore = false;
            var prefix = RowKeyPrefixAttribute.GetValue(idKey, this.Characters);

            return($"{currentKey}{prefix}");
        }
Пример #3
0
        public override string GetPartitionKey(string rowKey)
        {
            var hash = rowKey.MD5HashHex();

            return(RowKeyPrefixAttribute.GetValue(hash, this.Characters));
        }
 protected override string GetPartitionKey(string rowKey)
 {
     return(RowKeyPrefixAttribute.GetValue(rowKey, this.Characters));
 }