/// <summary> /// Constructs RangeFilter with the specified comparison /// operator and comparison values /// </summary> /// <param name="op">Comparison operator</param> /// <param name="values">Values to compare against</param> public RangeFilter(QueryOperator op, List <AttributeValue> values) { Condition = new Condition { ComparisonOperator = EnumToStringMapper.Convert(op), AttributeValueList = values }; }
/// <summary> /// Adds a condition for a specified attribute that consists /// of an operator and any number of values /// </summary> /// <param name="attributeName">Target attribute name</param> /// <param name="op">Comparison operator</param> /// <param name="values">Values to compare to</param> public void AddCondition(string attributeName, ScanOperator op, params DynamoDBEntry[] values) { AddCondition(attributeName, new Condition { ComparisonOperator = EnumToStringMapper.Convert(op), AttributeValueList = ConvertToAttributeValues(values) }); }
/// <summary> /// Adds a condition for a specified attribute that consists /// of an operator and any number of AttributeValues. /// </summary> /// <param name="attributeName">Target attribute name</param> /// <param name="op">Comparison operator</param> /// <param name="values">AttributeValues to compare to</param> public void AddCondition(string attributeName, ScanOperator op, List <AttributeValue> values) { AddCondition(attributeName, new Condition { ComparisonOperator = EnumToStringMapper.Convert(op), AttributeValueList = values }); }
/// <summary> /// Constructs RangeFilter with the specified comparison /// operator and comparison values /// </summary> /// <param name="op">Comparison operator</param> /// <param name="values">Values to compare against</param> public RangeFilter(QueryOperator op, List <AttributeValue> values) { Condition = new Condition() .WithComparisonOperator(EnumToStringMapper.Convert(op)) .WithAttributeValueList(values); }
/// <summary> /// Adds a condition for a specified attribute that consists /// of an operator and any number of values /// </summary> /// <param name="attributeName">Target attribute name</param> /// <param name="op">Comparison operator</param> /// <param name="values">Values to compare to</param> public void AddCondition(string attributeName, ScanOperator op, params DynamoDBEntry[] values) { AddCondition(attributeName, new Condition() .WithComparisonOperator(EnumToStringMapper.Convert(op)) .WithAttributeValueList(ConvertToAttributeValues(values))); }
/// <summary> /// Adds a condition for a specified attribute that consists /// of an operator and any number of AttributeValues. /// </summary> /// <param name="attributeName">Target attribute name</param> /// <param name="op">Comparison operator</param> /// <param name="values">AttributeValues to compare to</param> public void AddCondition(string attributeName, ScanOperator op, List <AttributeValue> values) { AddCondition(attributeName, new Condition() .WithComparisonOperator(EnumToStringMapper.Convert(op)) .WithAttributeValueList(values)); }