How can I get my enum to contain numbers for string descriptions? I have used [Description] for text strings. I want something like
Apple pie=1
Strawberry pie=2
My database would carry the numeric fields & I will fetch text description from the enum. This does not work
public enum Pies
{
[Description("Apple pie")]
"1"=1,
[Description("Strawberry pie")]
"0"=0
}