dynamodb-net-core-sample
dynamodb-net-core-sample copied to clipboard
Question regarding object composition
Is there a reason that you put State
in to object StateMap
rather than just putting all the properties in to AlexAudioState
? Is this required by DynamoDB or is this your design choice?
[DynamoDBTable("AlexaAudioStates")]
public class AlexaAudioState
{
[DynamoDBHashKey]
public string UserId { get; set; }
public StateMap State { get; set; }
}