Show / Hide Table of Contents

Class DynamoCondition

The DynamoCondition class contains static methods representing native DynamoDB condition functions and operators. These methods are only useful in WithCondition(...) constructs to express DynamoDB conditions. When used in code directly, these methods throw InvalidOperationException.

Inheritance
System.Object
DynamoCondition
Namespace: LambdaSharp.DynamoDB.Native
Assembly: LambdaSharp.DynamoDB.Native.dll
Syntax
public static class DynamoCondition

Methods

BeginsWith(String, String)

The BeginsWith(String, String) method represents the begins_with(path, substr) DynamoDB operation.

Declaration
public static bool BeginsWith(string value, string prefix)
Parameters
Type Name Description
System.String value

The record property to check.

System.String prefix

The string prefix value to check for.

Returns
Type Description
System.Boolean

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.Decimal value

The record property to check.

System.Decimal lower

The lower bound (inclusive).

System.Decimal upper

The upper bound (inclusive).

Returns
Type Description
System.Boolean

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.Double value

The record property to check.

System.Double lower

The lower bound (inclusive).

System.Double upper

The upper bound (inclusive).

Returns
Type Description
System.Boolean

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.Int32 value

The record property to check.

System.Int32 lower

The lower bound (inclusive).

System.Int32 upper

The upper bound (inclusive).

Returns
Type Description
System.Boolean

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.Int64 value

The record property to check.

System.Int64 lower

The lower bound (inclusive).

System.Int64 upper

The upper bound (inclusive).

Returns
Type Description
System.Boolean

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.String value

The record property to check.

System.String lower

The lower bound (inclusive).

System.String upper

The upper bound (inclusive).

Returns
Type Description
System.Boolean

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.Collections.Generic.ISet<System.Byte[]> set

The record property to check.

System.Byte[] item

The item to check if it is present in the set.

Returns
Type Description
System.Boolean

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.Collections.Generic.ISet<System.Decimal> set

The record property to check.

System.Decimal item

The item to check if it is present in the set.

Returns
Type Description
System.Boolean

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.Collections.Generic.ISet<System.Double> set

The record property to check.

System.Double item

The item to check if it is present in the set.

Returns
Type Description
System.Boolean

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.Collections.Generic.ISet<System.Int32> set

The record property to check.

System.Int32 item

The item to check if it is present in the set.

Returns
Type Description
System.Boolean

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.Collections.Generic.ISet<System.Int64> set

The record property to check.

System.Int64 item

The item to check if it is present in the set.

Returns
Type Description
System.Boolean

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.Collections.Generic.ISet<System.String> set

The record property to check.

System.String item

The item to check if it is present in the set.

Returns
Type Description
System.Boolean

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.String value

The record property to check.

System.String substr

The sub-string to check for.

Returns
Type Description
System.Boolean

DoesNotExist(Object)

The DoesNotExist(Object) method represents the attribute_not_exists(path) DynamoDB operation.

Declaration
public static bool DoesNotExist(object value)
Parameters
Type Name Description
System.Object value

The record or record property to check for.

Returns
Type Description
System.Boolean

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.Object value

The record or record property to check for.

Returns
Type Description
System.Boolean

HasType(Object, String)

The HasType(Object, String) method represents the attribute_type(path, type) DynamoDB operation.

Declaration
public static bool HasType(object value, string type)
Parameters
Type Name Description
System.Object value

The record property to check.

System.String type

The type to check.

Returns
Type Description
System.Boolean

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.Decimal value

The record property to check.

System.Collections.Generic.IEnumerable<System.Decimal> list

The non-empty list of values to check for.

Returns
Type Description
System.Boolean

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.Double value

The record property to check.

System.Collections.Generic.IEnumerable<System.Double> list

The non-empty list of values to check for.

Returns
Type Description
System.Boolean

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.Int32 value

The record property to check.

System.Collections.Generic.IEnumerable<System.Int32> list

The non-empty list of values to check for.

Returns
Type Description
System.Boolean

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.Int64 value

The record property to check.

System.Collections.Generic.IEnumerable<System.Int64> list

The non-empty list of values to check for.

Returns
Type Description
System.Boolean

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.String value

The record property to check.

System.Collections.Generic.IEnumerable<System.String> list

The non-empty list of values to check for.

Returns
Type Description
System.Boolean

Size(Byte[])

The Size(Byte[]) method represents the size(path) DynamoDB operation.

Declaration
public static int Size(byte[] value)
Parameters
Type Name Description
System.Byte[] value

The record property to get the byte size of.

Returns
Type Description
System.Int32

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.Collections.Generic.ISet<System.Byte[]> set

The record property to get the set item count of.

Returns
Type Description
System.Int32

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.Collections.Generic.ISet<System.Decimal> set

The record property to get the set item count of.

Returns
Type Description
System.Int32

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.Collections.Generic.ISet<System.Double> set

The record property to get the set item count of.

Returns
Type Description
System.Int32

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.Collections.Generic.ISet<System.Int32> set

The record property to get the set item count of.

Returns
Type Description
System.Int32

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.Collections.Generic.ISet<System.Int64> set

The record property to get the set item count of.

Returns
Type Description
System.Int32

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.Collections.Generic.ISet<System.String> set

The record property to get the set item count of.

Returns
Type Description
System.Int32

Size(IList)

The Size(IList) method represents the size(path) DynamoDB operation.

Declaration
public static int Size(IList list)
Parameters
Type Name Description
System.Collections.IList list

The record property to get the list item count of.

Returns
Type Description
System.Int32

Size(String)

The Size(String) method represents the size(path) DynamoDB operation.

Declaration
public static int Size(string value)
Parameters
Type Name Description
System.String value

The record property to get the character count of.

Returns
Type Description
System.Int32

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.Int32
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.Collections.Generic.IDictionary<System.String, T> map

The record property to get the map item count of.

Returns
Type Description
System.Int32
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.Collections.Generic.IList<T> list

The record property to get the list item count of.

Returns
Type Description
System.Int32
Type Parameters
Name Description
T

The inner type for the generic list.

In This Article
Back to top Generated by DocFX