Usage of the default ordinal value is poor practice because it tightly couples the app's representation of the data the actual data stored in the db. If an enum value is ever added to the app for any of these entities, it could cause off-by-one errors when interpreting the data from the db.
The default enum ordinal is saved to the db for
This is a non-exhaustive list.
Usage of the default ordinal value is poor practice because it tightly couples the app's representation of the data the actual data stored in the db. If an enum value is ever added to the app for any of these entities, it could cause off-by-one errors when interpreting the data from the db.