Hello hgsdc,
Each enumeration has an
underlying type, which can be any integral type except
char. By default this is
int. In the provided example you use integer as underlying type, so the enumeration field is mapped to an integer column in the database.
You could use the provided enumeration inside a class in the following way:
In order to insert new records in the database you could do the following:
I hope the provided information will be helpful to you.
All the best,
Damyan Bogoev
the Telerik team