I am working on a website where I have many lookup values like cities, states, countries
car makes, models and many more. there are alwasy two fields for these values
ID and Description. Now I have a question, should I keep them in one table and keep some
TypeId kind of field which differentiate them or should they stay in differnt tables.
Also how would be my Dataprovider class, currently I am thinking to have one class which
can provide all the data. But, I feel there will be many methods in this class.
Suggestions will be welcome.
Regards
Parminder
Trust me, the time will come when someone says, “hey, can we add latitude/longitude to cities”, and you’ll be kicking yourself because those properties make no sense with car makes and models.
You can’t really go wrong with physically separating unrelated, disjoint entities. So I’d recommend different tables.