Hello.
I have a table UserItems {ID, UserID, ItemID}
Items must be in RAM (not in db table)
What is better for this? As enum with attributes or as dictionary of items?:
enum Items
{
[InternalParam("x432")]
Red = 1,
[InternalParam("x431")]
Green = 2,
[InternalParam("x438")]
White = 3
}
OR
enum ItemsIds {Red=1, Green=2, White=3}
Dictionary<ItemsIds, Item> Items = new Dictionary(){
{Red, new Item("x432")},
{Green, new Item("x431")},
{White, new Item("x438")},
}