473,692 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

3 tier design AND data binding?

I am new to dot net and would like to write an application using a
solid 3 tier design because I expect the app to require a lot of
updates and maintenance over time.

I am creating my own data objects to interact with the database but the
more I understand the DataAdapter classes, the more confused I get. It
seems that all I really need my data access classes to do is return a
dataset, then accept it back again for updating the database, but this
functionality already exists.

It seems that writing my own individual data access classes is really
unnecessary. In fact, when taking into account the ease of using
visual studio form designer to drag data classes onto my forms, I am
starting to reconsider my design. Since I am using stored procedures,
these are starting to look like a legitimate data tier in their own
right as they are encapsulating the underlying database tables and
preventing direct access.

I can't be the only person struggling through these design decisions.
What is the best solution? My goals are quick development AND
maintainability . The application will be used by a small number of
users - under 20, but I'd like it scalable anyway as this could change.

Is encapsulating the native data classes in my own class even
necessary?

Thanks in advance,

D

Nov 21 '05 #1
3 1615
Hi!

Just a couple of reason for a dedicated data tier:

* can be easier to re-use functionality, eg a data tier object fetching an
address can be used in multiple places where an address is needed
* enable support for different databases by "just" swapping the data tier.
* If you get data from other sources than the database and want a common way
of accessing data, regardless of its storage.

But I agree, in a small application, it can feel a bit overambitious with a
full scale three-tier solution.

Brgds

Jonas

<zc****@hotmail .com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
I am new to dot net and would like to write an application using a
solid 3 tier design because I expect the app to require a lot of
updates and maintenance over time.

I am creating my own data objects to interact with the database but the
more I understand the DataAdapter classes, the more confused I get. It
seems that all I really need my data access classes to do is return a
dataset, then accept it back again for updating the database, but this
functionality already exists.

It seems that writing my own individual data access classes is really
unnecessary. In fact, when taking into account the ease of using
visual studio form designer to drag data classes onto my forms, I am
starting to reconsider my design. Since I am using stored procedures,
these are starting to look like a legitimate data tier in their own
right as they are encapsulating the underlying database tables and
preventing direct access.

I can't be the only person struggling through these design decisions.
What is the best solution? My goals are quick development AND
maintainability . The application will be used by a small number of
users - under 20, but I'd like it scalable anyway as this could change.

Is encapsulating the native data classes in my own class even
necessary?

Thanks in advance,

D

Nov 21 '05 #2
Can you be more specific as to how this data tier should work? That is
my confusion. If it exposes a DataSet, then do I allow the user to
manipulate (add/edit/delete) with this dataset, then call a method on
the data tier class to perform the database updates? Do I use a
DataAdapter class at all (within my data tier class) or is this
unnecessary?

I think the subtleties are where I am confused. Anyone have an example
of a data tier class that can properly interact with a GUI? If it
takes a little longer to do it right that is fine with me, my app does
not have too many data objects necessary anyway.

Thank you,

D

Nov 21 '05 #3
Can you be more specific as to how this data tier should work? That is
my confusion. If it exposes a DataSet, then do I allow the user to
manipulate (add/edit/delete) with this dataset, then call a method on
the data tier class to perform the database updates? Do I use a
DataAdapter class at all (within my data tier class) or is this
unnecessary?

I think the subtleties are where I am confused. Anyone have an example
of a data tier class that can properly interact with a GUI? If it
takes a little longer to do it right that is fine with me, my app does
not have too many data objects necessary anyway.

Thank you,

D

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

77
5673
by: nospam | last post by:
Reasons for a 3-tier achitecture for the WEB? (NOTE: I said, WEB, NOT WINDOWS. DON'T shoot your mouth off if you don't understand the difference.) I hear only one reason and that's to switch a database from SQL Server to Oracle or DB2 or vice versa... and that's it.... And a lot of these enterprises don't need it as they already know what database they are going to use and they don't plan on switching in and out database in the first...
16
3026
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For example dsParts.xsd and including that in the data tier. I then will create a class that looks like this Public Class CPart Inherits dsParts
3
1565
by: gabe | last post by:
I have a general design question. What's a 'Best Practice' for middle tier component design? I'm thinking of a web form that contains data from multiple tables. The data is supplied from one or more muti-table joins. Is it better to populate a form by binding to dataset tables or load the data in collection classes? How are the updates handled? Would there be a stored procedure for each table that is updated, and have all the updates...
1
1143
by: Anders S. Willumsen | last post by:
Hi, I'm implementing a 3-tier app (a shop) for the first time, and would like to have some of you guys comment on the design. Hope you can help me get rid of some confusion. I have a data-tier, business-tier and GUI In the data-tier I have all my data code - connection to SQL Server, and getting and pushing data. One methods could be DateReader
4
3190
by: nixon | last post by:
Hi there! Im trying to build a 3 tier application that uses a smartclient in the "view" layer. The communication between the smartclient and the server should be webservices because of potentiel firewall issues. I´ve looke at to smartclient demos to figure out how the experts do the stuff, design and overall architecture, Microsofts IssueVision and TaskVision. These applications uses DataSet´s to communicate between the layers and
3
1467
by: alan.chambers | last post by:
I am new to C++/CLI. I want to do a very simple thing. In other C++ applications, my forms have always been 'context free' in the sense that I pass them a temporary copy of the data for them to display and munge about. If OK is pressed, the client of the form does something with the temporary data. This approach is surely a commonplace, and I have implemented it in real C++ something like this: AddressData temp(original); // original...
0
8603
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8797
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8800
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6459
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5818
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4323
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4557
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.