I am building a web application that will have a single form that will be
populated with data from 8-10 tables. The easiest way to implement the data
tier would be to use DataSets and Data Adapters for each table. But, is
that the optimal approach?
How do I optimize the back-end data retrieval and corresponding updates
(inserts, updates, and deletes) within the .NET Framework?
Thanks in advance,
Mervin Williams 4 1434
Mervin:
If it's all on one form (and even if it's not) having a seperate dataset for
each datattable is definitely something you don't want to do. One DataSet
holding the datatables, (Unless logically there's a good reason for using
seperate datasets - but if you're talking about one form, it's hard to
imagine a scenario where you'd want/need more than one dataset), using
datarelations where possible is probably the best approach. You can then
serialize one set if you need to , pass it to/from a web service or use
whatever other method you want to access the data. You'll want different
dataadapters.
As far as optimization, there are different schools of thought, but you can
encapsulate that in any tier although the presentation tier is usually a
really bad choice. If you use stored procs you cna keep it all in the
backend layer which I find preferable b/c I can make change to my program
without recompiling and redistributing and it allows for optimum
performance, secuirty and flexibility. Many disagree and think the logic
should be in the middle tier and they have a point. You can also combine
the two. However, calling procs, passing in params where needed and letting
them do the heavy lifting is a way that I prefer.
HTH,
Bill
"Mervin Williams" <mw*******@inno vasolutions.net > wrote in message
news:e4******** ******@TK2MSFTN GP12.phx.gbl... I am building a web application that will have a single form that will be populated with data from 8-10 tables. The easiest way to implement the
data tier would be to use DataSets and Data Adapters for each table. But, is that the optimal approach?
How do I optimize the back-end data retrieval and corresponding updates (inserts, updates, and deletes) within the .NET Framework?
Thanks in advance,
Mervin Williams
Mervin:
If it's all on one form (and even if it's not) having a seperate dataset for
each datattable is definitely something you don't want to do. One DataSet
holding the datatables, (Unless logically there's a good reason for using
seperate datasets - but if you're talking about one form, it's hard to
imagine a scenario where you'd want/need more than one dataset), using
datarelations where possible is probably the best approach. You can then
serialize one set if you need to , pass it to/from a web service or use
whatever other method you want to access the data. You'll want different
dataadapters.
As far as optimization, there are different schools of thought, but you can
encapsulate that in any tier although the presentation tier is usually a
really bad choice. If you use stored procs you cna keep it all in the
backend layer which I find preferable b/c I can make change to my program
without recompiling and redistributing and it allows for optimum
performance, secuirty and flexibility. Many disagree and think the logic
should be in the middle tier and they have a point. You can also combine
the two. However, calling procs, passing in params where needed and letting
them do the heavy lifting is a way that I prefer.
HTH,
Bill
"Mervin Williams" <mw*******@inno vasolutions.net > wrote in message
news:e4******** ******@TK2MSFTN GP12.phx.gbl... I am building a web application that will have a single form that will be populated with data from 8-10 tables. The easiest way to implement the
data tier would be to use DataSets and Data Adapters for each table. But, is that the optimal approach?
How do I optimize the back-end data retrieval and corresponding updates (inserts, updates, and deletes) within the .NET Framework?
Thanks in advance,
Mervin Williams
I am curious when is it evident to break up a dataset with mulitple tables.
For example if you have multiple forms and need data on each form. Do you
suggest to break up the one dataset logically to match the forms if the
forms map to schema of the db? Or one dataset is still better? I have seen
many examples using only one dataset and it seems to me that this is not a
good approach.
Thanks
"William Ryan eMVP" <do********@com cast.nospam.net > wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Mervin:
If it's all on one form (and even if it's not) having a seperate dataset
for each datattable is definitely something you don't want to do. One DataSet holding the datatables, (Unless logically there's a good reason for using seperate datasets - but if you're talking about one form, it's hard to imagine a scenario where you'd want/need more than one dataset), using datarelations where possible is probably the best approach. You can then serialize one set if you need to , pass it to/from a web service or use whatever other method you want to access the data. You'll want different dataadapters.
As far as optimization, there are different schools of thought, but you
can encapsulate that in any tier although the presentation tier is usually a really bad choice. If you use stored procs you cna keep it all in the backend layer which I find preferable b/c I can make change to my program without recompiling and redistributing and it allows for optimum performance, secuirty and flexibility. Many disagree and think the logic should be in the middle tier and they have a point. You can also combine the two. However, calling procs, passing in params where needed and
letting them do the heavy lifting is a way that I prefer.
HTH,
Bill "Mervin Williams" <mw*******@inno vasolutions.net > wrote in message news:e4******** ******@TK2MSFTN GP12.phx.gbl... I am building a web application that will have a single form that will
be populated with data from 8-10 tables. The easiest way to implement the data tier would be to use DataSets and Data Adapters for each table. But, is that the optimal approach?
How do I optimize the back-end data retrieval and corresponding updates (inserts, updates, and deletes) within the .NET Framework?
Thanks in advance,
Mervin Williams
I am curious when is it evident to break up a dataset with mulitple tables.
For example if you have multiple forms and need data on each form. Do you
suggest to break up the one dataset logically to match the forms if the
forms map to schema of the db? Or one dataset is still better? I have seen
many examples using only one dataset and it seems to me that this is not a
good approach.
Thanks
"William Ryan eMVP" <do********@com cast.nospam.net > wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Mervin:
If it's all on one form (and even if it's not) having a seperate dataset
for each datattable is definitely something you don't want to do. One DataSet holding the datatables, (Unless logically there's a good reason for using seperate datasets - but if you're talking about one form, it's hard to imagine a scenario where you'd want/need more than one dataset), using datarelations where possible is probably the best approach. You can then serialize one set if you need to , pass it to/from a web service or use whatever other method you want to access the data. You'll want different dataadapters.
As far as optimization, there are different schools of thought, but you
can encapsulate that in any tier although the presentation tier is usually a really bad choice. If you use stored procs you cna keep it all in the backend layer which I find preferable b/c I can make change to my program without recompiling and redistributing and it allows for optimum performance, secuirty and flexibility. Many disagree and think the logic should be in the middle tier and they have a point. You can also combine the two. However, calling procs, passing in params where needed and
letting them do the heavy lifting is a way that I prefer.
HTH,
Bill "Mervin Williams" <mw*******@inno vasolutions.net > wrote in message news:e4******** ******@TK2MSFTN GP12.phx.gbl... I am building a web application that will have a single form that will
be populated with data from 8-10 tables. The easiest way to implement the data tier would be to use DataSets and Data Adapters for each table. But, is that the optimal approach?
How do I optimize the back-end data retrieval and corresponding updates (inserts, updates, and deletes) within the .NET Framework?
Thanks in advance,
Mervin Williams
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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: momina_dar |
last post by:
AlachiSoft “TierDeveloper” eradicates the problem of writing thousands of lines of code for your middle tier.
Many software solutions on the market can do it for you but according to our research there are few solutions in market, which can really be of any benefit to the software developer, And TierDeveloper is one of them.
TierDeveloper 3.0. is an O/R mapping and code generation tool that helps software developers boost their development...
|
by: Mervin Williams |
last post by:
I am building a web application that will have a single form that will be
populated with data from 8-10 tables. The easiest way to implement the data
tier would be to use DataSets and Data Adapters for each table. But, is
that the optimal approach?
How do I optimize the back-end data retrieval and corresponding updates
(inserts, updates, and deletes) within the .NET Framework?
Thanks in advance,
|
by: zc2468 |
last post by:
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...
|
by: Michelle |
last post by:
Hi all... I could use a little TLC here for understanding and not for
solving a specific problem... sorry if I've got the wrong group, but I'm
using VB so I figured this was the most appropriate one.
I'm an advanced beginner, but in all of the books and class material I have,
I haven't found something that gets to the point about this... lot's of high
level theoretical talk, but nothing that says things in simple terms.
I'm building...
| |
by: Tina |
last post by:
I'm reading about the "3-tier" design afforded by using Object Data Sources
in the App_Data folder in 2.0 asp.net projects.
To me, putting an object data source in a separate folder on the web sever
isn't 3 tier design. To accomplish 3-tier design I would want to put the
Object Data Source in a dll that runs on another server than the web server.
Then I need to use that object data source remotely.
But how can I accomplish binding to...
|
by: pratham |
last post by:
Hi!
I'm making a database application and i heard from a friend that it is
more
proffecional and easy to do this with bussines objects. Can anyone tell
me
where i can find more info on bussines objects and how to implement
them
with c#? I would appreciate any help.
How can i decide that what things go into business layer and what
|
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: grawsha2000 |
last post by:
Greetings,
I am developing this N-tier business app. The problem I'm facing is
when I try to pass business objects (employees, dept..etc) from
business tier to data tier,i.e., the add method in the data tier
expects business object from the business tier, I get an error saying:
Can not covert businesslayer.emp to businesslayer.emp
|
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...
|
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: 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,...
|
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: 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...
|
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...
|
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: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |