MVC pattern in Windows Applications.
Hi,
This is related to the MVC pattern in Windows Applications.
I have used the basic framework of classes as given in the Wrox book--C# Design Patterns Applied. Now my questions are as under--
1) Ideally, what should be the responsibility of the model ? Should the model contain different datasets for each table in the application or all the tables should be in a single dataset ?
2) What is the responsibility of different business objects ? And, where should the code for Add / Delete / Update (i.e. Insert / Update / Delete in databases) reside ? Should it reside in the individual Business Objects (like the Orders BO in the example application) ? Because, if the code for Add / Delete / Update resides in the individual BOs then won't there be repetition of code ?
Can anyone of you help me with this considering the fact that I've designed my MVC pattern as given in the above mentioned book ?
Thanks and Regards,
Manoj.
|