For
Presentation layer
* User interface form
Business logic layer
* Factory class
* User (business object) class
Data access layer
* DataProvider interface
* SqlDataProvider (DataProvider implementation)
Does this sound right?
1) UI calls Factory.GetUser(id)
2) Factory calls DataProvider.GetDataProvider.GetObjectData(<User>,id)
3) The appropriate DataProvider implementation then makes the appropriate queries for the type.
4) The data returned from the queries is stored in an basic array (or similar) and returned to the Factory object.
5) Factory then constructs the User object and returns it to the UI
Presentation layer
* User interface form
Business logic layer
* Factory class
* User (business object) class
Data access layer
* DataProvider interface
* SqlDataProvider (DataProvider implementation)
Does this sound right?
1) UI calls Factory.GetUser(id)
2) Factory calls DataProvider.GetDataProvider.GetObjectData(<User>,id)
3) The appropriate DataProvider implementation then makes the appropriate queries for the type.
4) The data returned from the queries is stored in an basic array (or similar) and returned to the Factory object.
5) Factory then constructs the User object and returns it to the UI