PC Review


Reply
Thread Tools Rate Thread

ASP.Net website 3-Tier Solution

 
 
=?Utf-8?B?U2FiZXIgUy4=?=
Guest
Posts: n/a
 
      31st Jan 2007
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.
 
Reply With Quote
 
 
 
 
sloan
Guest
Posts: n/a
 
      31st Jan 2007

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.com> wrote in message
news:B7D5477A-6E5E-4D1A-98C2-(E-Mail Removed)...
> 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.



 
Reply With Quote
 
=?Utf-8?B?U2FiZXIgUy4=?=
Guest
Posts: n/a
 
      31st Jan 2007
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.com> wrote in message
> news:B7D5477A-6E5E-4D1A-98C2-(E-Mail Removed)...
> > 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.

>
>
>

 
Reply With Quote
 
Thomas Hansen
Guest
Posts: n/a
 
      31st Jan 2007
On Jan 31, 8:03 am, Saber S. <Sab...@discussions.microsoft.com> wrote:
> 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!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Word 2003 - Two tier index repeates same top tier. Warren Postm4 Microsoft Word Document Management 3 6th Feb 2010 02:13 PM
Does Caching below in the business tier or data tier?? Nemisis Microsoft ASP .NET 1 22nd Aug 2006 04:43 PM
VB 2005 and Three Tier Solution Development Bob Palank Microsoft VB .NET 5 26th Nov 2005 04:35 PM
Creating n-tier solution Robin Microsoft ASP .NET 7 27th Jul 2004 05:48 PM
Message board layered architecture 2-tier or 3-tier? Vin Microsoft Dot NET 0 22nd Jul 2004 07:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:37 PM.