Amazon AWS SDK Guide de l'utilisateur Page 60

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 155
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 59
}
]
},
"ProductReviews": {
"M": {
"FiveStar": {
"SS": [
"My daughter really enjoyed this bike!"
]
},
"ThreeStar": {
"SS": [
"This bike was okay, but I would have preferred it in my color.",
"Fun to ride."
]
}
}
}
}
Get a Single Item by Using Expressions and the Item's
Primary Key
The following example features the Amazon.DynamoDBv2.AmazonDynamoDBClient.GetItem method
and a set of expressions to get and then print the item that has an Id of 205. Only the following attributes
of the item are returned: Id, Title, Description, Color, RelatedItems, Pictures, and
ProductReviews.
// using Amazon.DynamoDBv2;
// using Amazon.DynamoDBv2.Model;
var client = new AmazonDynamoDBClient();
var request = new GetItemRequest
{
TableName = "ProductCatalog",
ProjectionExpression = "Id, Title, Description, Color, #ri, Pictures, #pr",
ExpressionAttributeNames = new Dictionary<string, string>
{
{ "#pr", "ProductReviews" },
{ "#ri", "RelatedItems" }
},
Key = new Dictionary<string, AttributeValue>
{
{ "Id", new AttributeValue { N = "205" } }
},
};
var response = client.GetItem(request);
// PrintItem() is a custom function.
PrintItem(response.Item);
In the preceding example, the ProjectionExpression property specifies the attributes to be returned.
The ExpressionAttributeNames property specifies the placeholder #pr to represent the
ProductReviews attribute and the placeholder #ri to represent the RelatedItems attribute.The call
to PrintItem refers to a custom function as described in Print an Item (p. 58).
Version v2.0.0
56
AWS SDK for .NET Developer Guide
Using Expressions with DynamoDB
Vue de la page 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 154 155

Commentaires sur ces manuels

Pas de commentaire

Velleman WEH200 Handbücher

Bedienungsanleitungen und Benutzerhandbücher für Ausrüstung Velleman WEH200.
Wir stellen 1 PDF-Handbücher Velleman WEH200 zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung Bedienungsanleitung






Weitere Produkte und Handbücher für Ausrüstung Velleman

Modelle Dokumententyp
HPS50 Bedienungsanleitung     Velleman HPS50 User Manual, 72 Seiten
LAB2 Bedienungsanleitung      Velleman LAB2 User Manual, 32 Seiten
PCS10 Bedienungsanleitung   Velleman PCS10 User Manual, 7 Seiten
BPAPS230 Bedienungsanleitung   Velleman BPAPS230 User Manual, 2 Seiten
LAB1 Bedienungsanleitung      Velleman LAB1 User Manual, 64 Seiten
PCSU1000 RECORDER Bedienungsanleitung   Velleman PCSU1000 RECORDER User Manual, 7 Seiten
PCS100A pcs100 - pcs500 - k8031 Bedienungsanleitung   Velleman PCS100A pcs100 - pcs500 - k8031 User Manual, 25 Seiten
PCGU1000 Bedienungsanleitung   Velleman PCGU1000 User Manual, 13 Seiten
PCSGU250 Bedienungsanleitung      Velleman PCSGU250 User Manual, 40 Seiten
VDP900HZ2 Bedienungsanleitung      Velleman VDP900HZ2 User Manual, 28 Seiten
VDP1500SM Bedienungsanleitung      Velleman VDP1500SM User Manual, 19 Seiten
VDL800SMT2 Bedienungsanleitung       Velleman VDL800SMT2 User Manual, 23 Seiten
PMLCD Bedienungsanleitung      Velleman PMLCD User Manual, 7 Seiten
VDL400SM Bedienungsanleitung      Velleman VDL400SM User Manual, 19 Seiten
VDP1000SWN Bedienungsanleitung      Velleman VDP1000SWN User Manual [en] , 16 Seiten