Exemplo n.º 1
0
 internal static Table LoadTable(AmazonDynamoDB ddbClient, string tableName, Table.DynamoDBConsumer consumer)
 {
     Table table = new Table(ddbClient, tableName, consumer);
     table.GetKeyInfo();
     return table;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a Table object with the specified name, using the
 /// passed-in client to load the table definition.
 /// 
 /// This method will throw an exception if the table does not exist.
 /// </summary>
 /// <param name="ddbClient">Client to use to access DynamoDB.</param>
 /// <param name="tableName">Name of the table.</param>
 /// <returns>Table object representing the specified table.</returns>
 public static Table LoadTable(AmazonDynamoDB ddbClient, string tableName)
 {
     Table table = new Table(ddbClient, tableName, Table.DynamoDBConsumer.DocumentModel);
     table.GetKeyInfo();
     return table;
 }