コード例 #1
0
        public async Task <bool> ExistsAsync(RecordKey key)
        {
            var result = await FindAsync(new GetItemRequest(tableName, key) {
                ConsistentRead         = false,
                ReturnConsumedCapacity = false,
                AttributesToGet        = key.Select(k => k.Key).ToArray()
            }).ConfigureAwait(false);

            return(result != null);
        }