I have several classes (same base class) and only some users allowed to instantiate some. I need to keep allowed classes for a user in a database.
I definitely need some suggestions. Because I think, I should not need to have a list of class names as a string in database and instantiate them in a condition of string comparison. It just does not feel right to me.
Typical scenario is
1. Calling GetAllowedClassesToInstantiate(user) [From Database]
2. Instantiate those classes
Do you have any suggestions?
Regards, Burak