473,387 Members | 1,464 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,387 software developers and data experts.

3-tier development

I have been programming for a while in C# and ASP.NET, and on some big
projects I have tried to make an attempt to do 3 tier develpoment,
putting all my database stuff in a separate class and creating business
classes where necessary. But I have been going through the 3-tier
development tutorials on the www.asp.net website
(http://www.asp.net/learn/dataaccess/...aspx?tabid=63), and
everything is built on strongly typed datasets. Do real programmers
actually use these, as it seems to me to be simpler just to carry on
putting all the data access stuff in one class, whereas strongly typed
datasets in visual studio seem to make things very fiddly and more
complicated than they need to be.

Can anybody give me any advice on this?

*** Sent via Developersdex http://www.developersdex.com ***
Mar 5 '07 #1
6 1303
Yes. We use them.

Our business and data access layer code runs on an application server and so
is called remotely. All calls to the data access layer go through the
business layer. You have to have a definition of the typed DataSet(s) on
both the client and the server. We also use signed assemblies, so you
either have to put the XSD files in the GAC with their assemblies or sign
the DLLs, if you use xsd.exe to create DLLs from the XSD files, and put
those in the GAC.

Other than that, we find the advantages outweigh the disadvantaes.

YMMV, of course.
Peter

"Mike P" <mi*******@gmail.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>I have been programming for a while in C# and ASP.NET, and on some big
projects I have tried to make an attempt to do 3 tier develpoment,
putting all my database stuff in a separate class and creating business
classes where necessary. But I have been going through the 3-tier
development tutorials on the www.asp.net website
(http://www.asp.net/learn/dataaccess/...aspx?tabid=63), and
everything is built on strongly typed datasets. Do real programmers
actually use these, as it seems to me to be simpler just to carry on
putting all the data access stuff in one class, whereas strongly typed
datasets in visual studio seem to make things very fiddly and more
complicated than they need to be.

Can anybody give me any advice on this?

*** Sent via Developersdex http://www.developersdex.com ***

Mar 5 '07 #2
Do you create your typed datasets in Visual Studio like the example I
provided a link for? Is it not a pain creating your methods and stored
procs etc through the VS wizards? or do you use another way?
*** Sent via Developersdex http://www.developersdex.com ***
Mar 5 '07 #3
Yes, we use VS. If you want a copy of our internal documentation, mail me
at pbradley [at] uwic [dot] ac [dot] uk

Basically, since we have almost without exception already created the data
tables, we just drag the table the table(s) from the Server Explorer onto
the design surface.

We create stored procs manually: but that's another issue.

Couldn't find anything on the page that you provided a link to that
mentioned typed DataSets as such. Neither the word "typed" or "dataset"
appear on the page, according to firefox.
Peter
"Mike P" <mi*******@gmail.comwrote in message
news:e5****************@TK2MSFTNGP06.phx.gbl...
Do you create your typed datasets in Visual Studio like the example I
provided a link for? Is it not a pain creating your methods and stored
procs etc through the VS wizards? or do you use another way?
*** Sent via Developersdex http://www.developersdex.com ***

Mar 5 '07 #4

Yes (do real dev's use them).

This is a good artcle about different
http://msdn2.microsoft.com/en-us/library/ms978496.aspx

I call strong datasets .. "Poor Man's Business Objects".

But there are times where they are good. They're alot better than nothing.
They're very good with related data.

I use them for reporting, because (to me) business objects are a little too
much just for reports.

But I default to business objects, and use (strong) datasets as needed.

Also see my articles:
6/5/2006
Custom Objects and Tiered Development II // 2.0

5/24/2006
Custom Objects/Collections and Tiered Development

http://sholliday.spaces.live.com/blog/


"Mike P" <mi*******@gmail.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
I have been programming for a while in C# and ASP.NET, and on some big
projects I have tried to make an attempt to do 3 tier develpoment,
putting all my database stuff in a separate class and creating business
classes where necessary. But I have been going through the 3-tier
development tutorials on the www.asp.net website
(http://www.asp.net/learn/dataaccess/...aspx?tabid=63), and
everything is built on strongly typed datasets. Do real programmers
actually use these, as it seems to me to be simpler just to carry on
putting all the data access stuff in one class, whereas strongly typed
datasets in visual studio seem to make things very fiddly and more
complicated than they need to be.

Can anybody give me any advice on this?

*** Sent via Developersdex http://www.developersdex.com ***

Mar 5 '07 #5

YOu don't have to use those wizards.

Just "delete" the Adapter object that VS2005 pops on the bottom of the Table
object.

...

http://download.microsoft.com/downlo...005_Manual.doc

http://www.google.com/search?hl=en&q...nd&btnG=Search

I personally use the EnterpriseLibrary.Data to load (LoadDataSet) my strong
typed datasets.

See the url's above to get you going on that path.
...
"Mike P" <mi*******@gmail.comwrote in message
news:e5****************@TK2MSFTNGP06.phx.gbl...
Do you create your typed datasets in Visual Studio like the example I
provided a link for? Is it not a pain creating your methods and stored
procs etc through the VS wizards? or do you use another way?
*** Sent via Developersdex http://www.developersdex.com ***

Mar 5 '07 #6
How does XML come into this sort of 3-tier development (i.e. creating
database schemas etc)?

*** Sent via Developersdex http://www.developersdex.com ***
Mar 27 '07 #7

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

Similar topics

1
by: VB | last post by:
iTechArt Group - Custom Software Development and Offshore outsourcing Company http://www.itechart.com/ Offshore custom software development company iTechArt - Web site and Content Management...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.