User1176145865 posted
Hi,
Thank you for the answer.
Here is an example:
I have a class 'Team' that holds the following properties represented by Enums:
class Team
{
//enums:
public TeamPressure perssure { get;set;}
public PlayStyle style { get;set;}
}
Using Enums requires casting when instanciating a new Team and again on save:
Get();
using (MyEntities....
this.perssure = (TeamPressure)team.PressureID
Save();
team.PressureID = (int)this.perssure;
Another issue is when Serialized only the Enum ID is used and the value has to retrive separatly.