Show / Hide Table of Contents

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.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

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.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<TRecord>

Old record when found and condition is met. null, otherwise.

WithCondition(Expression<Func<TRecord, Boolean>>)

Add condition for DeleteItem operation.

Declaration
IDynamoTableDeleteItem<TRecord> WithCondition(Expression<Func<TRecord, bool>> condition)
Parameters
Type Name Description
System.Linq.Expressions.Expression<System.Func<TRecord, System.Boolean>> condition

A lambda predicate representing the DynamoDB condition expression.

Returns
Type Description
IDynamoTableDeleteItem<TRecord>
In This Article
Back to top Generated by DocFX