public override string GetPartitionKey(string rowKey) { var hash = rowKey.GetBytes().HashXX32(); var hashStr = hash.ToString("X"); return(RowKeyPrefixAttribute.GetValue(hashStr, this.Characters)); }
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}"); }
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)); }