예제 #1
0
 /// <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
     };
 }
예제 #2
0
 /// <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)
     });
 }
예제 #3
0
 /// <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
     });
 }
예제 #4
0
 /// <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);
 }
예제 #5
0
 /// <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)));
 }
예제 #6
0
 /// <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));
 }