Map enum

Jan 29, 2010 at 7:15 PM

Suppose I have an enum type I want to map into SimpleDB. For example:

public USState State { get; set; }

Now suppose I want to store the enum name, like "CA", rather than the number, like "4." Is that possible with a code attribute of some form? How would I accomplish this?

Jan 29, 2010 at 7:19 PM

Have you tried it? What you describe is supposed to be the default behavior for enum types.

This blog post includes an enum example: