AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Represents a context expression for DynamoDB operations in the object-persistence programming model. Used to encapsulate filter expressions for query and scan operations.

Inheritance Hierarchy

System.Object
  Amazon.DynamoDBv2.DataModel.ContextExpression

Namespace: Amazon.DynamoDBv2.DataModel
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z

Syntax

C#
public class ContextExpression

The ContextExpression type exposes the following members

Constructors

NameDescription
Public Method ContextExpression()

Properties

NameTypeDescription
Public Property Filter System.Linq.Expressions.Expression

Gets the filter expression used to filter results in DynamoDB operations. This expression is typically constructed from a LINQ expression tree.

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.7.2 or higher.

NameDescription
Public Method Static Method AttributeExists(object)

Indicates that the attribute exists in the DynamoDB item. Intended for use in LINQ expressions to generate DynamoDB attribute_exists conditions. This method is only used inside expression trees and should not be called at runtime.

Public Method Static Method AttributeNotExists(object)

Indicates that the attribute does not exist in the DynamoDB item. Intended for use in LINQ expressions to generate DynamoDB attribute_not_exists conditions. This method is only used inside expression trees and should not be called at runtime.

Public Method Static Method AttributeType(object, string)

Indicates that the attribute is of the specified DynamoDB type. Intended for use in LINQ expressions to generate DynamoDB attribute_type conditions. This method is only used inside expression trees and should not be called at runtime.

Public Method Static Method Between(T, T, T)

Indicates that the value should be compared to see if it falls inclusively between the specified lower and upper bounds. Intended for use in LINQ expressions to generate DynamoDB BETWEEN conditions. This method is only used inside expression trees and should not be called at runtime.

Public Method SetFilter(Expression<Func<T, Boolean>>)

Sets the filter expression for DynamoDB operations. Converts the provided LINQ expression into an internal expression tree for use in DynamoDB queries or scans.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer