Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 15th, 2003, 01:05 PM
Registered User
Join Date: Jul 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default MVC pattern in Windows Applications.


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,

Similar Threads
Thread Thread Starter Forum Replies Last Post
MVC pattern - where does display "logic" go? planoie General .NET 0 September 4th, 2008 07:56 AM
Java applications with windows 132591 Java Basics 0 November 24th, 2006 12:52 PM
Deploying Windows Applications ZiqXx C# 2 July 13th, 2004 04:00 AM
UserControl in Windows-Applications DG17 C# 2 September 8th, 2003 02:20 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.