-
-
Save OksanaH/5e9e91e7c236b3a3f3c0a8acf24a10cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (var i = 0; i <= 100; i++) | |
{ | |
var putItemRequest = new PutItemRequest | |
{ | |
TableName = sourceTableName, | |
Item = new Dictionary<string, AttributeValue>() | |
{ | |
{"City", new AttributeValue{S=cities[(new Random()).Next(cities.Length)] } }, | |
{"Date", new AttributeValue{S=GetRandom2020Date() } }, | |
{"Highest", new AttributeValue{N=(new Random()).Next(20,30).ToString() } }, | |
{"Lowest", new AttributeValue{N=(new Random()).Next(1,10).ToString() } } | |
} | |
}; | |
await client.PutItemAsync(putItemRequest); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment