Hello all, have been .netting for a while now and am starting to get the idea of classing out things and now I have a question.
Please feel free to comment or add any thoughts about the following.
My basic architectural belief is:
for the GUI,
The Gui forms should know little or nothing about the data they display. That is to say if I have for instance a form for "New Employees" the validation of the FirstName field should be a function of a class "employee" the GUI should just reference it and let the class do the testing.
For the Class,
The class should Know all of the data it contains and how to retrieve it from the database. The Class validates the data, gets the data etc.
for the DataBase
The Database only Presents the data. it does not do anything to the data for the gui. for example if you have a dropdown that you want to populate and you want the first row to be called "Select a department" you would NOT program it into the SQL procedule with a union. you would instead program it at the gui level.
Does this sound like the right direction or am I way off base?
any comments would be welcomed
Tal McMahon




Reply With Quote