473,394 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ASP.Net website 3-Tier Solution

www.asp.net website introduced a way to develop 3-tier websites (
http://www.asp.net/learn/dataaccess/....aspx?tabid=63 )

The question is, how to modify datasets without deleting and creating
datatables?

Let's imagine we've a table in SQL Server named "Person",
it includes: ID,FirstName,LastName fields.

we create a dataset in App_Code folder, and configure it to show Person
table and generate Insert,Update and Delete code by its wizard.

Then we write methods in BLL to show/add/modify records of Person table.

Well, imagine we had a bad design and now we decide to add Telephone field
to Person table,
what is the best way to update dataset and re-write BLL methods?

Deleting the dataset and re-creating it is a bad idea, because we may have
many queries in the table adapter attached to dataset.
Jan 31 '07 #1
3 2798

Sometimes (alot of times?) RAPID development is not the same as GOOD
DEVELOPMENT.

Try here:
http://sholliday.spaces.live.com/blog/
5/24/2006
Custom Objects/Collections and Tiered Development

on how to build a maintainable DataSets (and how to populate them)...
There's a 2.0 version also .... june 2006.

"Saber S." <Saber S.@discussions.microsoft.comwrote in message
news:B7**********************************@microsof t.com...
www.asp.net website introduced a way to develop 3-tier websites (
http://www.asp.net/learn/dataaccess/....aspx?tabid=63 )

The question is, how to modify datasets without deleting and creating
datatables?

Let's imagine we've a table in SQL Server named "Person",
it includes: ID,FirstName,LastName fields.

we create a dataset in App_Code folder, and configure it to show Person
table and generate Insert,Update and Delete code by its wizard.

Then we write methods in BLL to show/add/modify records of Person table.

Well, imagine we had a bad design and now we decide to add Telephone field
to Person table,
what is the best way to update dataset and re-write BLL methods?

Deleting the dataset and re-creating it is a bad idea, because we may have
many queries in the table adapter attached to dataset.

Jan 31 '07 #2
Thanks solan,
I downloaded the sample project (
http://www.reasolns.com/codeSamples/...erExample1.zip )

In this project, there is no dataset, but there are classes made of tables,
The datasets can be create dynamically using SQLHelper, but what about typed
datasets?
the

"sloan" wrote:
>
Sometimes (alot of times?) RAPID development is not the same as GOOD
DEVELOPMENT.

Try here:
http://sholliday.spaces.live.com/blog/
5/24/2006
Custom Objects/Collections and Tiered Development

on how to build a maintainable DataSets (and how to populate them)...
There's a 2.0 version also .... june 2006.

"Saber S." <Saber S.@discussions.microsoft.comwrote in message
news:B7**********************************@microsof t.com...
www.asp.net website introduced a way to develop 3-tier websites (
http://www.asp.net/learn/dataaccess/....aspx?tabid=63 )

The question is, how to modify datasets without deleting and creating
datatables?

Let's imagine we've a table in SQL Server named "Person",
it includes: ID,FirstName,LastName fields.

we create a dataset in App_Code folder, and configure it to show Person
table and generate Insert,Update and Delete code by its wizard.

Then we write methods in BLL to show/add/modify records of Person table.

Well, imagine we had a bad design and now we decide to add Telephone field
to Person table,
what is the best way to update dataset and re-write BLL methods?

Deleting the dataset and re-creating it is a bad idea, because we may have
many queries in the table adapter attached to dataset.


Jan 31 '07 #3
On Jan 31, 8:03 am, Saber S. <Sab...@discussions.microsoft.comwrote:
Thanks solan,
[snip]

I totally agree with Sloan, DataSets are probably the biggest anti-
design pattern ever implemented since Visual Basic was created...
;)
STAY AWAY from DataSets!
Use some ORM tool instead...

..t

--
http://ajaxwidgets.com
Free ASP.NET Ajax Widgets NOW!

Jan 31 '07 #4

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

Similar topics

0
by: ohaya | last post by:
Hi, I've been researching this, and I'm not sure if what I'm trying to do is possible, but I thought that I'd ask: I have two webservers/websites. The first webserver/website is running...
3
by: Newbie | last post by:
I have a C# asp.net webform with a Link Button to a website but it's not opening the website correctly. It's saying "The page cannot be found". But the website is loading when I use IE. Below is...
8
by: jacky kwok | last post by:
Dear All: In VS2005 WebSetup installer InstallAddress dialog, there is field to let user to select which website to install the webapp (if there are more than one WebSite in the IIS). I want...
17
by: stubbsie | last post by:
Hi, I have redesigned our official public government website in .net and it has taken me a few months to redo. I have been the sole designer of the website from its humble beginnning a few years...
19
by: cpnet | last post by:
I'm using VS2005, C#, ASP.NET 2.0. I'm trying to create a report using SQL Reporting Services (to be used in local mode so I don't have to deal with SQL Server). When I create a new report in my...
7
by: Atul | last post by:
Hi Theres a website that books hotels . user enters the information and according to that results are displayed to the user.Let it be website A. Now I want to create a new project with...
3
by: Mintyman | last post by:
Hi, I have 2 fields in a database: 'email' and 'website'. In the majority of cases, the website field is not populated even though the email address is. In 90% of cases, the website will be...
5
by: Ron | last post by:
Hi all, I am new at .net 2.0 deployment so can any one recommend me a good way or article to follow? What I want to do is (1)to deploy the website on the server2003 with IIS6 (2)we have...
5
by: daveh551 | last post by:
What, from a high level point of view, is the difference (in Visual Studio 2005) between Website (accessed with Open Website or Create Website from the StartPage) that is an ASP.NET Website, and a...
2
by: Wayne Smith | last post by:
Applies to: Visual Studio 2008 Professional Hi everyone, I'm in the middle of creating a website with VS2008 and I'm trying to integrate a user registration/login section on the website but I've...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
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...

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.