From f34782e8061da17e3243a01360040d96a326c5ff Mon Sep 17 00:00:00 2001 From: Phil Asmar Date: Thu, 8 Aug 2024 15:58:34 -0400 Subject: [PATCH] reply to Norm's comments --- .../Custom/DataModel/ContextBuilder.cs | 17 +---------------- .../Custom/DataModel/IDynamoDBContextBuilder.cs | 3 ++- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/sdk/src/Services/DynamoDBv2/Custom/DataModel/ContextBuilder.cs b/sdk/src/Services/DynamoDBv2/Custom/DataModel/ContextBuilder.cs index f034becc5717..0ffe72e69eed 100644 --- a/sdk/src/Services/DynamoDBv2/Custom/DataModel/ContextBuilder.cs +++ b/sdk/src/Services/DynamoDBv2/Custom/DataModel/ContextBuilder.cs @@ -17,22 +17,7 @@ namespace Amazon.DynamoDBv2.DataModel { - /// - /// Builder that constructs a - /// Using to construct a will implicitly set - /// to true which avoids the DescribeTable call - /// and relies entirely on the DynamoDB attributes set on the .NET classes. - /// If needed, you can revert back to the previous behavior by setting - /// to false using as such: - /// - /// var context = new DynamoDBContextBuilder() - /// .ConfigureContext(x => - /// { - /// x.DisableFetchingTableMetadata = false; - /// }) - /// .Build(); - /// - /// + /// #if NET8_0_OR_GREATER [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode(Amazon.DynamoDBv2.Custom.Internal.InternalConstants.RequiresUnreferencedCodeMessage)] #endif diff --git a/sdk/src/Services/DynamoDBv2/Custom/DataModel/IDynamoDBContextBuilder.cs b/sdk/src/Services/DynamoDBv2/Custom/DataModel/IDynamoDBContextBuilder.cs index 20dced34822e..a48596d2d717 100644 --- a/sdk/src/Services/DynamoDBv2/Custom/DataModel/IDynamoDBContextBuilder.cs +++ b/sdk/src/Services/DynamoDBv2/Custom/DataModel/IDynamoDBContextBuilder.cs @@ -21,7 +21,8 @@ namespace Amazon.DynamoDBv2.DataModel /// Interface for a builder that constructs a /// Using to construct a will implicitly set /// to true which avoids the DescribeTable call - /// and relies entirely on the DynamoDB attributes set on the .NET classes. + /// and relies entirely on the DynamoDB attributes set on the .NET classes. Alternatively, you can register the + /// table definition using . /// If needed, you can revert back to the previous behavior by setting /// to false using as such: ///