I have tables named Events and Log. The Events table comprises of ID, Event description and type. And, the Log contains LogID, EventID(refers to ID from Event table), and timstamp.
I am using Entities framework. While making an entry in the log table, i mention the event id as the number corresponding to the log event from the Event table. As i continue to use this logging across the app, it becomes cumbersome to remember the event id for the logged event. I would like to map these event ID as enums in my code and just use the enum for better usability.
Has anyone created enums using this approach? If so, please share your thoughts on the design for creating one.