I see that there is an EntityType enum that is declared for all of the entities that get created. It appears that this enum is created in alphabetical order.
I have a few questions about this:
- Is it possible to specify the values of each of the enum values?
- Is there any way to guarantee that the value of each enum will NOT change from generation to generation?
I ask because I intend to use Guids as my unique IDs, but I plan to embed the object type in the Guid so that if I ever look at a Guid in my database I'll know what type of object it is.
In order for this to work, I need to know that the EntityType ID's won't change from build to build of the generated code.
(You may wonder why I don't know based on what table the guid is in... well I plan to have a 'Notes' table that can essentially point to any object in my database - I would like to know what the object type is when looking at the guid in this table.)