internal AttributeValueUpdate ConvertToAttributeUpdateValue() { AttributeValue attributeValue = ConvertToAttributeValue(); AttributeValueUpdate attributeUpdate = new AttributeValueUpdate(); if (attributeValue == null) { attributeUpdate.Action = "DELETE"; } else { attributeUpdate.Action = "PUT"; attributeUpdate.Value = attributeValue; } return attributeUpdate; }
internal override AttributeValueUpdate ConvertToAttributeUpdateValue() { AttributeValueUpdate attributeUpdate = new AttributeValueUpdate(); if (!string.IsNullOrEmpty(this.Value)) { attributeUpdate.Action = "PUT"; attributeUpdate.Value = new AttributeValue(); if (SaveAsNumeric) { attributeUpdate.Value.N = Value; } else { attributeUpdate.Value.S = Value; } } else { attributeUpdate.Action = "DELETE"; } return attributeUpdate; }
internal override AttributeValueUpdate ConvertToAttributeUpdateValue() { AttributeValueUpdate attributeUpdate = new AttributeValueUpdate(); if ((Entries != null) && (Entries.Count != 0)) { attributeUpdate.Action = "PUT"; attributeUpdate.Value = new AttributeValue(); List<string> values = new List<string>(); foreach (var entry in Entries) { values.Add(entry.Value); } if (SaveAsNumeric) { attributeUpdate.Value.NS = values; } else { attributeUpdate.Value.SS = values; } } else { attributeUpdate.Action = "DELETE"; } return attributeUpdate; }