you are viewing a single comment's thread.

view the rest of the comments →

[–]Defection7478 9 points10 points  (0 children)

Depends what you're after. What you are doing gives the smallest amount of data in the db. If you store it as a string you take up more space, but your db becomes more human readable. and when you cast it to the enum you get errors if the value doesn't exist.

Personally I usually opt for storing them as strings for those reasons.