Show / Hide Table of Contents

Class DynamoUpdate

The DynamoUpdate class contains static methods representing native DynamoDB update operators. These methods are only useful in Set(...,...) constructs to express DynamoDB conditions. When used in code directly, these methods throw InvalidOperationException.

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

Methods

IfNotExists<T>(T, T)

The IfNotExists<T>(T, T) method represents the if_not_exists(path, value) DynamoDB operation.

Declaration
public static T IfNotExists<T>(T attribute, T value)
Parameters
Type Name Description
T attribute

The record property to check.

T value

The value to use if the record property does not exist.

Returns
Type Description
T
Type Parameters
Name Description
T

The type of the record property.

IfNotExists<T>(IDictionary<String, T>, IDictionary<String, T>)

The IfNotExists<T>(IDictionary<String, T>, IDictionary<String, T>) method represents the if_not_exists(path, value) DynamoDB operation.

Declaration
public static IDictionary<string, T> IfNotExists<T>(IDictionary<string, T> attribute, IDictionary<string, T> value)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, T> attribute

The record property to check.

System.Collections.Generic.IDictionary<System.String, T> value

The value to use if the record property does not exist.

Returns
Type Description
System.Collections.Generic.IDictionary<System.String, T>
Type Parameters
Name Description
T

The type of the record property.

IfNotExists<T>(IList<T>, IList<T>)

The IfNotExists<T>(IList<T>, IList<T>) method represents the if_not_exists(path, value) DynamoDB operation.

Declaration
public static IList<T> IfNotExists<T>(IList<T> attribute, IList<T> value)
Parameters
Type Name Description
System.Collections.Generic.IList<T> attribute

The record property to check.

System.Collections.Generic.IList<T> value

The value to use if the record property does not exist.

Returns
Type Description
System.Collections.Generic.IList<T>
Type Parameters
Name Description
T

The type of the record property.

IfNotExists<T>(ISet<T>, ISet<T>)

The IfNotExists<T>(ISet<T>, ISet<T>) method represents the if_not_exists(path, value) DynamoDB operation.

Declaration
public static ISet<T> IfNotExists<T>(ISet<T> attribute, ISet<T> value)
Parameters
Type Name Description
System.Collections.Generic.ISet<T> attribute

The record property to check.

System.Collections.Generic.ISet<T> value

The value to use if the record property does not exist.

Returns
Type Description
System.Collections.Generic.ISet<T>
Type Parameters
Name Description
T

The type of the record property.

ListAppend<T>(IList<T>, IList<T>)

The ListAppend<T>(IList<T>, IList<T>) method represents the list_append (list1, list2) DynamoDB operation.

Declaration
public static IList<T> ListAppend<T>(IList<T> list1, IList<T> list2)
Parameters
Type Name Description
System.Collections.Generic.IList<T> list1

The list to append to.

System.Collections.Generic.IList<T> list2

The list to append.

Returns
Type Description
System.Collections.Generic.IList<T>
Type Parameters
Name Description
T

The inner type for the generic list.

In This Article
Back to top Generated by DocFX