Class DynamoUpdate
The DynamoSet(...,...)
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 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. |
attribute | The record property to check. |
System. |
value | The value to use if the record property does not exist. |
Returns
Type | Description |
---|---|
System. |
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. |
attribute | The record property to check. |
System. |
value | The value to use if the record property does not exist. |
Returns
Type | Description |
---|---|
System. |
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. |
attribute | The record property to check. |
System. |
value | The value to use if the record property does not exist. |
Returns
Type | Description |
---|---|
System. |
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. |
list1 | The list to append to. |
System. |
list2 | The list to append. |
Returns
Type | Description |
---|---|
System. |
Type Parameters
Name | Description |
---|---|
T | The inner type for the generic list. |