A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/DynamoDBv2/TExpression.html below:

Expression Class | AWS SDK for .NET V3

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.

Expressions are used for conditional deletes and filtering for query and scan operations.

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

The Expression type exposes the following members

Name Type Description ExpressionAttributeNames System.Collections.Generic.Dictionary<System.String, System.String>

Gets and sets the property ExpressionAttributeNames. This collection contains attribute names from the item that should be substituted in the expression when it is evaluated. For example the expression "#C < #U" will expect the attribute names to be added to this collection.

expression.ExpressionAttributeNames["#C"] = "CriticRating"
expression.ExpressionAttributeNames["#U"] = "UserRating"
            
ExpressionAttributeValues System.Collections.Generic.Dictionary<System.String, Amazon.DynamoDBv2.DocumentModel.DynamoDBEntry>

Gets and sets the property ExpressionAttributeValues. This collection contains the values to be substituted in the expression. For example the expression "Price > :price" will contain one entry in this collection a key of ":price".

DynamoDBEntry contains many common implicit cast operations so assignment can be done with the basic .NET types. In the price example shown above the value to be used for the expression can be provided using the following code snippet:

expression.ExpressionAttributeValues[":price"] = 3.99;
            
ExpressionStatement System.String

Gets and sets the property ExpressionStatement. "Price > :price" is an example expression statement. :price is a variable which gets its value from the ExpressionAttributeValues collection. If this is used for deletes then it prevents the delete from happening if the Price attribute on the item is less then the passed in price. For query and scan it will only return back items where the Price attribute is greater then passed in price.

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

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4