Class DynamoCondition
The DynamoWithCondition(...)
constructs to express DynamoDB conditions. When used in code directly, these methods
throw InvalidOperationException
.
Inheritance
Namespace: LambdaSharp.DynamoDB.Native
Assembly: LambdaSharp.DynamoDB.Native.dll
Syntax
public static class DynamoCondition
Methods
BeginsWith(String, String)
The Beginsbegins_with(path, substr)
DynamoDB operation.
Declaration
public static bool BeginsWith(string value, string prefix)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to check. |
System. |
prefix | The string prefix value to check for. |
Returns
Type | Description |
---|---|
System. |
Between(Decimal, Decimal, Decimal)
The Between(Decimal, Decimal, Decimal) method represents the a BETWEEN b AND c
DynamoDB operation.
Declaration
public static bool Between(decimal value, decimal lower, decimal upper)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to check. |
System. |
lower | The lower bound (inclusive). |
System. |
upper | The upper bound (inclusive). |
Returns
Type | Description |
---|---|
System. |
Between(Double, Double, Double)
The Between(Double, Double, Double) method represents the a BETWEEN b AND c
DynamoDB operation.
Declaration
public static bool Between(double value, double lower, double upper)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to check. |
System. |
lower | The lower bound (inclusive). |
System. |
upper | The upper bound (inclusive). |
Returns
Type | Description |
---|---|
System. |
Between(Int32, Int32, Int32)
The Between(Int32, Int32, Int32) method represents the a BETWEEN b AND c
DynamoDB operation.
Declaration
public static bool Between(int value, int lower, int upper)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to check. |
System. |
lower | The lower bound (inclusive). |
System. |
upper | The upper bound (inclusive). |
Returns
Type | Description |
---|---|
System. |
Between(Int64, Int64, Int64)
The Between(Int64, Int64, Int64) method represents the a BETWEEN b AND c
DynamoDB operation.
Declaration
public static bool Between(long value, long lower, long upper)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to check. |
System. |
lower | The lower bound (inclusive). |
System. |
upper | The upper bound (inclusive). |
Returns
Type | Description |
---|---|
System. |
Between(String, String, String)
The Between(String, String, String) method represents the a BETWEEN b AND c
DynamoDB operation.
Declaration
public static bool Between(string value, string lower, string upper)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to check. |
System. |
lower | The lower bound (inclusive). |
System. |
upper | The upper bound (inclusive). |
Returns
Type | Description |
---|---|
System. |
Contains(ISet<Byte[]>, Byte[])
The Contains(ISet<Byte[]>, Byte[]) method represents the contains(path, value)
DynamoDB operation.
Declaration
public static bool Contains(ISet<byte[]> set, byte[] item)
Parameters
Type | Name | Description |
---|---|---|
System. |
set | The record property to check. |
System. |
item | The item to check if it is present in the set. |
Returns
Type | Description |
---|---|
System. |
Contains(ISet<Decimal>, Decimal)
The Contains(ISet<Decimal>, Decimal) method represents the contains(path, value)
DynamoDB operation.
Declaration
public static bool Contains(ISet<decimal> set, decimal item)
Parameters
Type | Name | Description |
---|---|---|
System. |
set | The record property to check. |
System. |
item | The item to check if it is present in the set. |
Returns
Type | Description |
---|---|
System. |
Contains(ISet<Double>, Double)
The Contains(ISet<Double>, Double) method represents the contains(path, value)
DynamoDB operation.
Declaration
public static bool Contains(ISet<double> set, double item)
Parameters
Type | Name | Description |
---|---|---|
System. |
set | The record property to check. |
System. |
item | The item to check if it is present in the set. |
Returns
Type | Description |
---|---|
System. |
Contains(ISet<Int32>, Int32)
The Contains(ISet<Int32>, Int32) method represents the contains(path, value)
DynamoDB operation.
Declaration
public static bool Contains(ISet<int> set, int item)
Parameters
Type | Name | Description |
---|---|---|
System. |
set | The record property to check. |
System. |
item | The item to check if it is present in the set. |
Returns
Type | Description |
---|---|
System. |
Contains(ISet<Int64>, Int64)
The Contains(ISet<Int64>, Int64) method represents the contains(path, value)
DynamoDB operation.
Declaration
public static bool Contains(ISet<long> set, long item)
Parameters
Type | Name | Description |
---|---|---|
System. |
set | The record property to check. |
System. |
item | The item to check if it is present in the set. |
Returns
Type | Description |
---|---|
System. |
Contains(ISet<String>, String)
The Contains(ISet<String>, String) method represents the contains(path, value)
DynamoDB operation.
Declaration
public static bool Contains(ISet<string> set, string item)
Parameters
Type | Name | Description |
---|---|---|
System. |
set | The record property to check. |
System. |
item | The item to check if it is present in the set. |
Returns
Type | Description |
---|---|
System. |
Contains(String, String)
The Contains(String, String) method represents the contains(path, value)
DynamoDB operation.
Declaration
public static bool Contains(string value, string substr)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to check. |
System. |
substr | The sub-string to check for. |
Returns
Type | Description |
---|---|
System. |
DoesNotExist(Object)
The Doesattribute_not_exists(path)
DynamoDB operation.
Declaration
public static bool DoesNotExist(object value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record or record property to check for. |
Returns
Type | Description |
---|---|
System. |
Exists(Object)
The Exists(Object) method represents the attribute_exists(path)
DynamoDB operation.
Declaration
public static bool Exists(object value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record or record property to check for. |
Returns
Type | Description |
---|---|
System. |
HasType(Object, String)
The Hasattribute_type(path, type)
DynamoDB operation.
Declaration
public static bool HasType(object value, string type)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to check. |
System. |
type | The type to check. |
Returns
Type | Description |
---|---|
System. |
In(Decimal, IEnumerable<Decimal>)
The In(Decimal, IEnumerable<Decimal>) method represents the a IN (b, c, d)
DynamoDB operation.
Declaration
public static bool In(decimal value, IEnumerable<decimal> list)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to check. |
System. |
list | The non-empty list of values to check for. |
Returns
Type | Description |
---|---|
System. |
In(Double, IEnumerable<Double>)
The In(Double, IEnumerable<Double>) method represents the a IN (b, c, d)
DynamoDB operation.
Declaration
public static bool In(double value, IEnumerable<double> list)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to check. |
System. |
list | The non-empty list of values to check for. |
Returns
Type | Description |
---|---|
System. |
In(Int32, IEnumerable<Int32>)
The In(Int32, IEnumerable<Int32>) method represents the a IN (b, c, d)
DynamoDB operation.
Declaration
public static bool In(int value, IEnumerable<int> list)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to check. |
System. |
list | The non-empty list of values to check for. |
Returns
Type | Description |
---|---|
System. |
In(Int64, IEnumerable<Int64>)
The In(Int64, IEnumerable<Int64>) method represents the a IN (b, c, d)
DynamoDB operation.
Declaration
public static bool In(long value, IEnumerable<long> list)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to check. |
System. |
list | The non-empty list of values to check for. |
Returns
Type | Description |
---|---|
System. |
In(String, IEnumerable<String>)
The In(String, IEnumerable<String>) method represents the a IN (b, c, d)
DynamoDB operation.
Declaration
public static bool In(string value, IEnumerable<string> list)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to check. |
System. |
list | The non-empty list of values to check for. |
Returns
Type | Description |
---|---|
System. |
Size(Byte[])
The Size(Byte[]) method represents the size(path)
DynamoDB operation.
Declaration
public static int Size(byte[] value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to get the byte size of. |
Returns
Type | Description |
---|---|
System. |
Size(ISet<Byte[]>)
The Size(ISet<Byte[]>) method represents the size(path)
DynamoDB operation.
Declaration
public static int Size(ISet<byte[]> set)
Parameters
Type | Name | Description |
---|---|---|
System. |
set | The record property to get the set item count of. |
Returns
Type | Description |
---|---|
System. |
Size(ISet<Decimal>)
The Size(ISet<Decimal>) method represents the size(path)
DynamoDB operation.
Declaration
public static int Size(ISet<decimal> set)
Parameters
Type | Name | Description |
---|---|---|
System. |
set | The record property to get the set item count of. |
Returns
Type | Description |
---|---|
System. |
Size(ISet<Double>)
The Size(ISet<Double>) method represents the size(path)
DynamoDB operation.
Declaration
public static int Size(ISet<double> set)
Parameters
Type | Name | Description |
---|---|---|
System. |
set | The record property to get the set item count of. |
Returns
Type | Description |
---|---|
System. |
Size(ISet<Int32>)
The Size(ISet<Int32>) method represents the size(path)
DynamoDB operation.
Declaration
public static int Size(ISet<int> set)
Parameters
Type | Name | Description |
---|---|---|
System. |
set | The record property to get the set item count of. |
Returns
Type | Description |
---|---|
System. |
Size(ISet<Int64>)
The Size(ISet<Int64>) method represents the size(path)
DynamoDB operation.
Declaration
public static int Size(ISet<long> set)
Parameters
Type | Name | Description |
---|---|---|
System. |
set | The record property to get the set item count of. |
Returns
Type | Description |
---|---|
System. |
Size(ISet<String>)
The Size(ISet<String>) method represents the size(path)
DynamoDB operation.
Declaration
public static int Size(ISet<string> set)
Parameters
Type | Name | Description |
---|---|---|
System. |
set | The record property to get the set item count of. |
Returns
Type | Description |
---|---|
System. |
Size(IList)
The Size(IList) method represents the size(path)
DynamoDB operation.
Declaration
public static int Size(IList list)
Parameters
Type | Name | Description |
---|---|---|
System. |
list | The record property to get the list item count of. |
Returns
Type | Description |
---|---|
System. |
Size(String)
The Size(String) method represents the size(path)
DynamoDB operation.
Declaration
public static int Size(string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The record property to get the character count of. |
Returns
Type | Description |
---|---|
System. |
Size<T>(T)
The Size<T>(T) method represents the size(path)
DynamoDB operation.
Declaration
public static int Size<T>(T map)
where T : class
Parameters
Type | Name | Description |
---|---|---|
T | map | The record property to get the map item count of. |
Returns
Type | Description |
---|---|
System. |
Type Parameters
Name | Description |
---|---|
T | The type of the record property. |
Size<T>(IDictionary<String, T>)
The Size<T>(IDictionary<String, T>) method represents the size(path)
DynamoDB operation.
Declaration
public static int Size<T>(IDictionary<string, T> map)
Parameters
Type | Name | Description |
---|---|---|
System. |
map | The record property to get the map item count of. |
Returns
Type | Description |
---|---|
System. |
Type Parameters
Name | Description |
---|---|
T | The type of the record property. |
Size<T>(IList<T>)
The Size<T>(IList<T>) method represents the size(path)
DynamoDB operation.
Declaration
public static int Size<T>(IList<T> list)
Parameters
Type | Name | Description |
---|---|---|
System. |
list | The record property to get the list item count of. |
Returns
Type | Description |
---|---|
System. |
Type Parameters
Name | Description |
---|---|
T | The inner type for the generic list. |