public static DynamoExpression Conjunction(params Expression[] expressions) { var result = new DynamoExpression(); result.AddRange(expressions); return(result); }
public UpdateItemRequest( string tableName, IEnumerable <KeyValuePair <string, object> > key, Change[] changes, Expression[]?conditions = null, ReturnValues?returnValues = null) { TableName = tableName ?? throw new ArgumentNullException(nameof(tableName)); Key = key ?? throw new ArgumentNullException(nameof(key)); Changes = changes ?? throw new ArgumentNullException(nameof(changes)); ReturnValues = returnValues; if (conditions != null && conditions.Length > 0) { var expression = new DynamoExpression(ExpressionAttributeNames, ExpressionAttributeValues); expression.AddRange(conditions); ConditionExpression = expression.Text; } }