Groups | Blog | Home
all groups > asp.net webcontrols > july 2003 >

asp.net webcontrols : Typed vs Untyped datasets.....


Alvin Bruney
7/13/2003 10:42:33 AM
One of the major advantages of type datasets is that referencing items in
the dataset is syntactically easier. Another one is, it is type safe, being
checked at design time.
If you don't care about these, use an untyped. There are many other
advantages as well i just highlighted two. See Daved Sceppas ADO.NET book
for the full scoup.

[quoted text, click to view]

Alvin Bruney
7/13/2003 2:51:45 PM
untyped all the way for me.


[quoted text, click to view]

Paul Aspinall
7/13/2003 4:33:27 PM
Can anyone offer opinions over when to user Typed Datasets, over untyped....

I know the VS IDE allows the use of typed datasets, by graphically
representing the connectivity. In order to use untyped, you need to code
everything yourself.....

In which cases is it appropriate to use each method??

Thanks


Paul Aspinall
7/13/2003 5:11:20 PM
Which do you use??

I like the advantages of the Types dataset, but prefer the style and control
given by the untyped (ie. code!)

Or an I missing something?


Cheers

"Alvin Bruney" <vapordan_spam_me_not@hotmail_no_spamhotmail.com> wrote in
message news:%231%23inVVSDHA.2852@tk2msftngp13.phx.gbl...
[quoted text, click to view]

sampsons
7/14/2003 3:49:42 PM
Paul,

I use typed datasets only in Widows Forms, not in Web Forms...

My Rule of thumb for typed vs. untyped.

If the dataset will be persisted in some fashion (i.e. Saved in Session,
Serialized to .xml) then I will use a typed dataset
If the dataset is throwaway (i.e. you have to rebuild the dataset each
posting) I use untyped.

[quoted text, click to view]

AddThis Social Bookmark Button