Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/265.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Amazon Dynamo DB-在本地数据库中创建表时出现的问题_C#_.net_Amazon Dynamodb_Local Database - Fatal编程技术网

C# Amazon Dynamo DB-在本地数据库中创建表时出现的问题

C# Amazon Dynamo DB-在本地数据库中创建表时出现的问题,c#,.net,amazon-dynamodb,local-database,C#,.net,Amazon Dynamodb,Local Database,我正在使用本地AmazonDynamoDB,并试图创建一个表,作为; Id |起点1 |终点1 |起点2 |终点2 |速度|距离 我尝试使用CreateTable()函数,但发现很难创建一个。 我正在使用.NETAPI 谁能帮我弄到这个吗 我尝试的示例代码是 var response = client.CreateTable(new CreateTableRequest { TableName = tableName, AttributeDefinit

我正在使用本地AmazonDynamoDB,并试图创建一个表,作为; Id |起点1 |终点1 |起点2 |终点2 |速度|距离

我尝试使用CreateTable()函数,但发现很难创建一个。 我正在使用.NETAPI

谁能帮我弄到这个吗

我尝试的示例代码是

var response = client.CreateTable(new CreateTableRequest
      {
        TableName = tableName,
        AttributeDefinitions = new List<AttributeDefinition>()
        {
          new AttributeDefinition
          {
            AttributeName = "Id",
            AttributeType = "S"
          },
          new AttributeDefinition
          {
            AttributeName = "ReplyDateTime",
            AttributeType = "S"
          }
        },
        KeySchema = new List<KeySchemaElement>()
        {
          new KeySchemaElement()
          {
            AttributeName = "Id",
            KeyType = "HASH"
          },
          new KeySchemaElement()
          {
            AttributeName = "ReplyDateTime",
            KeyType = "RANGE"
          }
        },
        ProvisionedThroughput = new ProvisionedThroughput
        {
          ReadCapacityUnits = 10,
          WriteCapacityUnits = 5
        }
      });
var response=client.CreateTable(新的CreateTableRequest
{
TableName=TableName,
AttributeDefinitions=新列表()
{
新属性定义
{
AttributeName=“Id”,
AttributeType=“S”
},
新属性定义
{
AttributeName=“ReplyDateTime”,
AttributeType=“S”
}
},
KeySchema=新列表()
{
新的KeySchemaElement()
{
AttributeName=“Id”,
KeyType=“散列”
},
新的KeySchemaElement()
{
AttributeName=“ReplyDateTime”,
KeyType=“范围”
}
},
ProvisionedThroughput=新的ProvisionedThroughput
{
ReadCapacityUnits=10,
WriteCapacityUnits=5
}
});
对于2列,它工作正常。对于2个以上的列,如何实现这一点

感谢和问候, Vijay

我没有使用过C#中的API,但是看到一些API在本地失败,因为您正在访问一个新功能并使用较旧的Dynamo DB包。(一个例子是GSI,它只有几个月的历史)。 此页面始终承载最新的: (之前在doc页面上有一个地方,它错误地保存了一个旧的)

我没有使用过from C#,但是看到一些api在本地失败,因为您正在访问一个新功能并使用一个旧的Dynamo DB包。(一个例子是GSI,它只有几个月的历史)。 此页面始终承载最新的:
(之前在文档页面上有一个位置,它错误地保存了一个较旧的位置)

创建表时定义的唯一属性是散列和(可选)范围。这不是一个关系数据库,其中每一行都必须具有相同的属性。

创建表时定义的唯一属性是散列和(可选)范围。这不是一个每一行都必须具有相同属性的关系数据库。

Dada,amazon DB madhye table tar aass创建kartat:he pan paha:C#madhun kasa karnar?saheb,tya baddal jast mahit nahi,但hi link paha:Dada,amazon DB madhye table tar aass创建kartat:he pan paha:C#madhun kasa karnar?saheb,tya baddal jast mahit nahi,但hi link paha: