@@ -7,11 +7,11 @@ namespace Dynatello.Builders;
7
7
/// <summary>
8
8
/// A record based builder for creating <see cref="UpdateItemRequest" /> that can be configured via the `with` syntax.
9
9
/// </summary>
10
- public readonly record struct UpdateRequestBuilder < TArg >
10
+ public readonly record struct UpdateRequestBuilder < T >
11
11
{
12
- private readonly Func < TArg , IAttributeExpression > _attributeExpressionSelector ;
12
+ private readonly Func < T , IAttributeExpression > _attributeExpressionSelector ;
13
13
private readonly IDynamoDBKeyMarshaller _keyMarshaller ;
14
- private readonly Func < IDynamoDBKeyMarshaller , TArg , Dictionary < string , AttributeValue > > _keySelector ;
14
+ private readonly Func < IDynamoDBKeyMarshaller , T , Dictionary < string , AttributeValue > > _keySelector ;
15
15
private readonly ReturnConsumedCapacity _returnConsumedCapacity = ReturnConsumedCapacity . NONE ;
16
16
private readonly ReturnItemCollectionMetrics _returnItemCollectionMetrics = ReturnItemCollectionMetrics . NONE ;
17
17
private readonly ReturnValue _returnValues = ReturnValue . NONE ;
@@ -28,9 +28,9 @@ public UpdateRequestBuilder()
28
28
}
29
29
30
30
internal UpdateRequestBuilder (
31
- Func < TArg , IAttributeExpression > attributeExpressionSelector ,
31
+ Func < T , IAttributeExpression > attributeExpressionSelector ,
32
32
string tableName ,
33
- Func < IDynamoDBKeyMarshaller , TArg , Dictionary < string , AttributeValue > > keySelector ,
33
+ Func < IDynamoDBKeyMarshaller , T , Dictionary < string , AttributeValue > > keySelector ,
34
34
IDynamoDBKeyMarshaller keyMarshaller
35
35
)
36
36
{
@@ -49,9 +49,9 @@ public string TableName
49
49
}
50
50
51
51
/// <summary>
52
- /// A function to specify how the keys should be accessed through the <typeparamref name="TArg " />.
52
+ /// A function to specify how the keys should be accessed through the <typeparamref name="T " />.
53
53
/// </summary>
54
- public Func < IDynamoDBKeyMarshaller , TArg , Dictionary < string , AttributeValue > > KeySelector
54
+ public Func < IDynamoDBKeyMarshaller , T , Dictionary < string , AttributeValue > > KeySelector
55
55
{
56
56
get => _keySelector ;
57
57
init => _keySelector = value ?? throw new ArgumentNullException ( nameof ( value ) ) ;
@@ -89,7 +89,7 @@ public ReturnValuesOnConditionCheckFailure ReturnValuesOnConditionCheckFailure
89
89
/// <summary>
90
90
/// Will build a <see cref="UpdateItemRequest" /> with the specified configurations.
91
91
/// </summary>
92
- public UpdateItemRequest Build ( TArg arg )
92
+ public UpdateItemRequest Build ( T arg )
93
93
{
94
94
var expression = _attributeExpressionSelector ( arg ) ;
95
95
return new UpdateItemRequest
0 commit comments