public void Enter(ExpressionAttributeName attrName) { if (_attributeNames.ContainsKey(attrName)) { _attributeNames[attrName]++; } }
public HashKeyCondition AddHashKeyCondition(ExpressionAttributeName attrName, ExpressionAttributeValue attrValue) { var hashKey = new HashKey { ExpressionAttributeName = attrName, ExpressionAttributeValue = attrValue, }; var hashKeyCondition = new HashKeyCondition(hashKey); HashKeys.Add(hashKey, hashKeyCondition); return(hashKeyCondition); }
public void Leave(ExpressionAttributeName attrName) { if (attrName != null && _attributeNames.ContainsKey(attrName)) { if (_attributeNames[attrName] == 1) { _attributeNames.Remove(attrName); } else { _attributeNames[attrName]--; } } }
public SortKeyCondition AddSortKeyCondition( ExpressionAttributeName name, ExpressionAttributeValue value, ExpressionAttributeValue value2, string @operator, SortKeyType sortKeyType ) { var sortKey = new SortKey { ExpressionAttributeName = name, ExpressionAttributeValue = value, ExpressionAttributeValue2 = value2, Operator = @operator, SortKeyType = sortKeyType }; var sortKeyCondition = new SortKeyCondition(sortKey); SortKeys.Add(sortKey, sortKeyCondition); return(sortKeyCondition); }