Amazon AWS SDK Guide de l'utilisateur Page 28 : Elements Reference

/ 155
Table des matières
...
<logging
logTo="SystemDiagnostics"
logResponses="OnError"
logMetrics="true"
logMetricsFormat="JSON"
logMetricsCustomFormatter="MyLib.Util.MyMetricsFormatter, MyLib" />
...

map

The
map
element represents a single item in a collection of type-to-table mappings from .NET types to
DynamoDB tables. (This element maps to an instance of the
Amazon.Util.TypeMapping
class from
the
Amazon.AWSConfigs.DynamoDBConfig.Context.TypeMappings
property in the AWS SDK for
.NET.) For more information, see
Enhancements to the DynamoDB SDK
. This element can include the
following attributes:
•
targetTable
— The DynamoDB table to which the mapping applies. (This attribute maps to the
Amazon.Util.TypeMapping.TargetTable
property in the AWS SDK for .NET.)
•
type
— The type and assembly name to which the mapping applies. (This attribute maps to the
Amazon.Util.TypeMapping.Type
property in the AWS SDK for .NET.)
The parent of the
map
element is the
dynamoDBContext (p. 22)
element.
The
map
element can include one or more instances of the
property (p. 24)
child element.
The following is an example of the
map
element in use:
...
<map
type="SampleApp.Models.Movie, SampleDLL"
targetTable="Movies">
...
</map>
...

property

The
property
element represents a DynamoDB property. (This element maps to an instance of the
Amazon.Util.PropertyConfig
class from the
Amazon.Util.TypeMapping.AddProperty
method
in the AWS SDK for .NET.) For more information, see
Enhancements to the DynamoDB SDK
and
DynamoDB Attributes
. This element can include the following attributes:
•
attribute
— The name of an attribute for the property, such as the name of a range key. (This attribute
maps to the
Amazon.Util.PropertyConfig.Attribute
property in the AWS SDK for .NET.)
•
converter
— The type of converter that should be used for this property. (This attribute maps to the
Amazon.Util.PropertyConfig.Converter
property in the AWS SDK for .NET.)
•
ignore
— Whether the associated property should be ignored (
true
); otherwise,
false
. (This attribute
maps to the
Amazon.Util.PropertyConfig.Ignore
property in the AWS SDK for .NET.)
•
name
— The name of the property. (This attribute maps to the
Amazon.Util.PropertyConfig.Name
property in the AWS SDK for .NET.)
•
version
— Whether this property should store the item version number (
true
); otherwise,
false
.
(This attribute maps to the
Amazon.Util.PropertyConfig.Version
property in the AWS SDK for
.NET.)
Version v2.0.0
24
AWS SDK for .NET Developer Guide
Configuration Files Reference

Fichier PDF · ·

Imprimer

Imprimer le document

Partage

Questions sur Amazon AWS SDK

Pas encore de questions sur ce manuel. Posez la première.

Poser une question

Nous répondons à partir du manuel et indiquons la page. La question est publiée sur le site après vérification.

Toutes les questions et réponses ›

Produits connexes et manuels pour Logiciel Amazon AWS SDK