SDK autogenerated timestamp attribute for DynamoDB using C#/.NET

Viewed 34

My question is similar to Auto populate timestamp in DynamoDB, but I'm using C#/.NET. I could not find an equivalent DynamoDbAutoGeneratedTimestampAttribute using the object persistence model. How do I go about auto managing CreatedDate and LastUpdatedDate properties?

1 Answers

Unfortunately, there is currently no DynamoDbAutoGeneratedTimestampAttribute in the DynamoDB .NET object persistence model.

You will have to implement this yourself.

I could think of the easiest way being to just generate the timestamps when you create/update the object.

Related