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 3 1619
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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
|
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...
|
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
|
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
| |
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...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
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...
| |
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |