How do you handle the implementation and mapping of class properties whose values are usually retreived from references tables. For example
suppose you have the class,
class Person
{
Public int Id;
Public string FirstName;
Public string Country;
}
Assume the tables
Persons:
PersonId
FirstName
CountryId
Countries:
CountryId
FullName
Now I would like to store the country's fullname from the countries table in the Person class w/o createing a Country class.
How would I handle that mapping?
Cheers,
Aeden
Last edited by aedenj on Wed Dec 20, 2006 1:56 am, edited 3 times in total.
|