Skip to content

DynamoDBStorage.ConvertUpdate(Dictionary<string, AttributeValue>, Dictionary<string, AttributeValue>, string, Dictionary<string, AttributeValue>)

ConvertUpdate(Dictionary<string, AttributeValue>, Dictionary<string, AttributeValue>, string, Dictionary<string, AttributeValue>)

View source
public (string updateExpression, Dictionary<string, AttributeValue> expressionAttributeValues) DynamoDBStorage.ConvertUpdate(Dictionary<string, AttributeValue> fields, Dictionary<string, AttributeValue>? conditionValues = null, string extraExpression = "", Dictionary<string, AttributeValue>? extraExpressionValues = null)
Creates a DynamoDB update expression and its expression attribute values.

Parameters

fieldsDictionary<string, AttributeValue>
The attributes to assign in the update expression.
conditionValuesDictionary<string, AttributeValue>
The values referenced by the condition expression.
extraExpressionstring
An additional update expression appended after the attribute assignments.
extraExpressionValuesDictionary<string, AttributeValue>
The values referenced by extraExpression.

Returns

The update expression and all expression attribute values used by the update and condition expressions.