Hi
I am new to this forum so thank you in advance to any assistance given.
I have a question in regards to 3 tier design and where a function should sit (best practice wise as I know I can put it anywhere)...
My set up is....
Database Layer ---- For example clsTeachingLocationsDB.vb
Business Layer ----- Validators etc etc
Presentation Layer----- For example frmCandidate.vb
In my database layer I have for example a function getting a list of TeachingLocations from the database then in the presentation layer there is a function that loads the data into a combo box etc.
Now I need to retrieve TeachingLocations specific to the Candidate selected...
Now would the database work sit in clsTeachingLocationsDB.vb or clsCandidateDB.vb?
I guess another question would be for the the Candidate class how would I bring in the teaching locations and store them.....
Thanks in advance
I am new to this forum so thank you in advance to any assistance given.
I have a question in regards to 3 tier design and where a function should sit (best practice wise as I know I can put it anywhere)...
My set up is....
Database Layer ---- For example clsTeachingLocationsDB.vb
Business Layer ----- Validators etc etc
Presentation Layer----- For example frmCandidate.vb
In my database layer I have for example a function getting a list of TeachingLocations from the database then in the presentation layer there is a function that loads the data into a combo box etc.
Now I need to retrieve TeachingLocations specific to the Candidate selected...
Now would the database work sit in clsTeachingLocationsDB.vb or clsCandidateDB.vb?
I guess another question would be for the the Candidate class how would I bring in the teaching locations and store them.....
Thanks in advance