Interface IDynamoTableDeleteItem<TRecord>
Interface to specify a DeleteItem operation.
Namespace: LambdaSharp.DynamoDB.Native.Operations
Assembly: LambdaSharp.DynamoDB.Native.dll
Syntax
public interface IDynamoTableDeleteItem<TRecord>
where TRecord : class
Type Parameters
Name | Description |
---|---|
TRecord | The record type. |
Methods
ExecuteAsync(CancellationToken)
Execute the DeleteItem operation.
Declaration
Task<bool> ExecuteAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System. |
True, when successful. False, when condition is not met. |
ExecuteReturnOldItemAsync(CancellationToken)
Execute the DeleteItem operation.
Declaration
Task<TRecord> ExecuteReturnOldItemAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System. |
Old record when found and condition is met. |
WithCondition(Expression<Func<TRecord, Boolean>>)
Add condition for DeleteItem operation.
Declaration
IDynamoTableDeleteItem<TRecord> WithCondition(Expression<Func<TRecord, bool>> condition)
Parameters
Type | Name | Description |
---|---|---|
System. |
condition | A lambda predicate representing the DynamoDB condition expression. |
Returns
Type | Description |
---|---|
IDynamo |