@@ -263,9 +263,9 @@ type TableContext<'TRecord>
263263 match proj with
264264 | None -> ()
265265 | Some proj ->
266- let aw = AttributeWriter( Dictionary(), null )
267- request.ProjectionExpression <- proj.Write aw
268- request.ExpressionAttributeNames <- aw .Names
266+ let writer = AttributeWriter( Dictionary(), null )
267+ request.ProjectionExpression <- proj.Write writer
268+ request.ExpressionAttributeNames <- writer .Names
269269
270270 match consistentRead with
271271 | None -> ()
@@ -294,7 +294,7 @@ type TableContext<'TRecord>
294294
295295 let consistentRead = defaultArg consistentRead false
296296 let kna = KeysAndAttributes( AttributesToGet = ResizeArray(), Keys = ResizeArray())
297- kna.AttributesToGet.AddRange( template.Info.Properties |> Seq.map ( fun p -> p .Name) )
297+ kna.AttributesToGet.AddRange( template.Info.Properties |> Seq.map _ . Name)
298298 kna.Keys.AddRange( keys |> Seq.map template.ToAttributeValues)
299299 kna.ConsistentRead <- consistentRead
300300 match projExpr with
@@ -581,7 +581,7 @@ type TableContext<'TRecord>
581581 | true , reqs ->
582582 reqs
583583 |> Seq.choose ( fun r -> r.PutRequest |> Option.ofObj)
584- |> Seq.map ( fun w -> w .Item)
584+ |> Seq.map _ . Item
585585 |> Seq.toArray
586586 | false , _ -> [||]
587587 maybeReport
@@ -844,7 +844,7 @@ type TableContext<'TRecord>
844844 | true , reqs ->
845845 reqs
846846 |> Seq.choose ( fun r -> r.DeleteRequest |> Option.ofObj)
847- |> Seq.map ( fun d -> d .Key)
847+ |> Seq.map _ . Key
848848 |> Seq.toArray
849849 | false , _ -> [||]
850850 maybeReport
@@ -873,7 +873,7 @@ type TableContext<'TRecord>
873873 ) : Async < 'TRecord []> =
874874 async {
875875
876- let filterCondition = filterCondition |> Option.map ( fun fc -> fc .Conditional)
876+ let filterCondition = filterCondition |> Option.map _ . Conditional
877877 let! downloaded = queryAsync keyCondition.Conditional filterCondition None limit consistentRead scanIndexForward
878878 return downloaded |> Seq.map template.OfAttributeValues |> Seq.toArray
879879 }
@@ -922,7 +922,7 @@ type TableContext<'TRecord>
922922 ) : Async < 'TProjection []> =
923923 async {
924924
925- let filterCondition = filterCondition |> Option.map ( fun fc -> fc .Conditional)
925+ let filterCondition = filterCondition |> Option.map _ . Conditional
926926 let! downloaded = queryAsync keyCondition.Conditional filterCondition None limit consistentRead scanIndexForward
927927 return downloaded |> Seq.map projection.UnPickle |> Seq.toArray
928928 }
@@ -979,7 +979,7 @@ type TableContext<'TRecord>
979979 ) : Async < PaginatedResult < 'TRecord , IndexKey >> =
980980 async {
981981
982- let filterCondition = filterCondition |> Option.map ( fun fc -> fc .Conditional)
982+ let filterCondition = filterCondition |> Option.map _ . Conditional
983983 let! downloaded , lastEvaluatedKey =
984984 queryPaginatedAsync
985985 keyCondition.Conditional
@@ -1048,7 +1048,7 @@ type TableContext<'TRecord>
10481048 ) : Async < PaginatedResult < 'TProjection , IndexKey >> =
10491049 async {
10501050
1051- let filterCondition = filterCondition |> Option.map ( fun fc -> fc .Conditional)
1051+ let filterCondition = filterCondition |> Option.map _ . Conditional
10521052 let! downloaded , lastEvaluatedKey =
10531053 queryPaginatedAsync
10541054 keyCondition.Conditional
@@ -1104,7 +1104,7 @@ type TableContext<'TRecord>
11041104 /// <param name="limit">Maximum number of items to evaluate.</param>
11051105 /// <param name="consistentRead">Specify whether to perform consistent read operation.</param>
11061106 member _.ScanAsync (? filterCondition : ConditionExpression < 'TRecord >, ? limit : int , ? consistentRead : bool ) : Async < 'TRecord []> = async {
1107- let filterCondition = filterCondition |> Option.map ( fun fc -> fc .Conditional)
1107+ let filterCondition = filterCondition |> Option.map _ . Conditional
11081108 let! downloaded = scanAsync filterCondition None limit consistentRead
11091109 return downloaded |> Seq.map template.OfAttributeValues |> Seq.toArray
11101110 }
@@ -1137,7 +1137,7 @@ type TableContext<'TRecord>
11371137 ? consistentRead : bool
11381138 ) : Async < 'TProjection []> =
11391139 async {
1140- let filterCondition = filterCondition |> Option.map ( fun fc -> fc .Conditional)
1140+ let filterCondition = filterCondition |> Option.map _ . Conditional
11411141 let! downloaded = scanAsync filterCondition ( Some projection.ProjectionExpr) limit consistentRead
11421142 return downloaded |> Seq.map projection.UnPickle |> Seq.toArray
11431143 }
@@ -1182,7 +1182,7 @@ type TableContext<'TRecord>
11821182 ? consistentRead : bool
11831183 ) : Async < PaginatedResult < 'TRecord , TableKey >> =
11841184 async {
1185- let filterCondition = filterCondition |> Option.map ( fun fc -> fc .Conditional)
1185+ let filterCondition = filterCondition |> Option.map _ . Conditional
11861186 let! downloaded , lastEvaluatedKey =
11871187 scanPaginatedAsync filterCondition None ( LimitType.DefaultOrCount limit) exclusiveStartKey consistentRead
11881188 return
@@ -1227,7 +1227,7 @@ type TableContext<'TRecord>
12271227 ? consistentRead : bool
12281228 ) : Async < PaginatedResult < 'TProjection , TableKey >> =
12291229 async {
1230- let filterCondition = filterCondition |> Option.map ( fun fc -> fc .Conditional)
1230+ let filterCondition = filterCondition |> Option.map _ . Conditional
12311231 let! downloaded , lastEvaluatedKey =
12321232 scanPaginatedAsync
12331233 filterCondition
@@ -1337,11 +1337,11 @@ type TableContext<'TRecord>
13371337 Transaction( client, ?metricsCollector = metricsCollector)
13381338
13391339/// <summary>
1340- /// Represents a transactional set of operations to be applied atomically to a arbitrary number of DynamoDB tables.
1340+ /// Represents a transactional set of operations to be applied atomically to an arbitrary number of DynamoDB tables.
13411341/// </summary>
13421342/// <param name="client">DynamoDB client instance</param>
13431343/// <param name="metricsCollector">Function to receive request metrics.</param>
1344- and Transaction ( client : IAmazonDynamoDB , ? metricsCollector : ( RequestMetrics -> unit ) ) =
1344+ and Transaction ( client : IAmazonDynamoDB , ? metricsCollector : RequestMetrics -> unit ) =
13451345 let transactionItems = ResizeArray< TransactWriteItem>()
13461346
13471347 let reportMetrics collector ( tableName : string ) ( operation : Operation ) ( consumedCapacity : ConsumedCapacity list ) ( itemCount : int ) =
@@ -1455,7 +1455,7 @@ and Transaction(client: IAmazonDynamoDB, ?metricsCollector: (RequestMetrics -> u
14551455 maybeReport
14561456 |> Option.iter ( fun r ->
14571457 response.ConsumedCapacity
1458- |> Seq.groupBy ( fun x -> x .TableName)
1458+ |> Seq.groupBy _ . TableName
14591459 |> Seq.iter ( fun ( tableName , consumedCapacity ) ->
14601460 r tableName Operation.TransactWriteItems ( Seq.toList consumedCapacity) ( Seq.length transactionItems)))
14611461 if response.HttpStatusCode <> HttpStatusCode.OK then
0 commit comments