In the IbuyWeb I find
public class CustomerDetails
{
public String FullName;
public String Email;
public String Password;
}
public class CustomersDB {
public CustomerDetails GetCustomerDetails(String customerID)
{
...some code that connects to the DB and fills a CustomerDetails Object...
}
}
Why are there two separate objects for this? Personally I would create one CustomerDetails with a getDetailsFromDB() method that fetches all the data.
My customers have a serveral ID fields (ex languageID, countryID, ...). If I want to fetch the values for this ID has have to make a detour when working with a 'pure-Details' object and a 'pure-DB' object.
Or am I missing out on some performance issues?
Regards,
Wout
Support your local bands!!