Skip to content

FromQueryAsync does not allow TableNamePrefix to be set #2614

Answered by ashishdhingra
BryanCrotaz asked this question in Q&A
Discussion options

You must be logged in to vote

@BryanCrotaz Good afternoon. I'm unsure if you have tried to use the overloaded version of FromQueryAsync(QueryOperationConfig, DynamoDBOperationConfig) where you could provide TableNamePrefix in DynamoDBOperationConfig, but the following code works:

using Amazon.DynamoDBv2;
using Amazon.DynamoDBv2.DataModel;
using Amazon.DynamoDBv2.DocumentModel;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace DynamoDBTest
{
    class Program
    {
        private static AmazonDynamoDBClient client = new AmazonDynamoDBClient();

        static void Main(string[] args)
        {
            DynamoDBContext context = new DynamoDBContext(client);
            Task.Wai…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ashishdhingra
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. dynamodb
2 participants
Converted from issue

This discussion was converted from issue #2611 on May 23, 2023 16:42.