DynamoDBContext.DynamoDBContext(IAmazonDynamoDB)'is obsolete: 'Use the DynamoDBContextBuilder to construct a DynamoDBContext #3849
Unanswered
AbhishekPathakTR
asked this question in
Q&A
Replies: 1 comment
-
What's the error you saw? Was the same one reported in #3859 by chance? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to a batchwrite in lambda in C#,but when using below got getting obsolete warning (Using latest version of everything)
var dynamoDBClient = new AmazonDynamoDBClient(
var dynamoDBContext = new DynamoDBContext(dynamoDBClient);
var batchWrite = dynamoDBContext.CreateBatchWrite(batchWriteConfig);
batchWrite.AddPutItem(model);
await batchWrite.ExecuteAsync();
i tried using below as well to create client but not working.
var dynamoDBContext = new DynamoDBContextBuilder()
.WithDynamoDBClient(() => dynamoDBClient)
.Build();
Beta Was this translation helpful? Give feedback.
All reactions