1

Resolved

Entity class compilation problem with choices that start with digit

description

SpMetal creates an enum for Choice fields that looks like this for choices starting with a digit:
 
enum Priority : uint { [Choice("(1) High")] 1High, [Choice("(2) Normal")] 2Normal, [Choice("(3) Low")] 3Low }
 
This doesn't compile in C#. The same holds for VB output:
 
Enum Priority As UInteger
<Choice("(1) High")> 1High
<Choice("(2) Normal")> 2Normal
<Choice("(3) Low")> 3Low
End Enum

comments