I had a moment of clarity in regards to Typed Datasets last night.  What I
was missing was the fact that you still load them as you would a non-typed
dataset, with a DataReader.  So, if I have a particular schema that I based
my DataSet on, just craft a DB query that returns data representing that
structure.  I found this:

http://aspx.securedomains.com/devguide/adonet/generatingstronglytypeddataset
.aspx

which seemed to clear up alot.  Like in Java, is the an equivilent XMLReader
to the DataReader?  This way I can load data from XML and call a fill()
method for my Typed DataSet.

BTW, yes, I would like to see a quick sample.  Thanks. :)

--

David B. Bitton
[EMAIL PROTECTED]
www.codenoevil.com

Code Made Fresh DailyT
----- Original Message -----
From: "Shawn Wildermuth" <>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 14, 2002 10:35 PM
Subject: Re: Typed Dataset


> The typed DataSet simply presets the schema for a DataSet.  You can fill
> typed datasets in the identical way you would from the database.
> Normally I create a DataAdapter per table in the DataSet or typed
> DataSet.  This works fine.  If you need an example, reply and ask for
> one and I'll craft one up quick.
>
> Now if you started from an XSD that doesn't model the DataSet in a way
> that is consistent with the database, you might want to use the Visual
> Studio.NET's typed DataSet generation.
>
> Thanks,
>
> Shawn Wildermuth
> [EMAIL PROTECTED]
>
> > -----Original Message-----
> > From: dotnet discussion [mailto:[EMAIL PROTECTED]]
> > On Behalf Of David B. Bitton
> > Sent: Sunday, April 14, 2002 10:22 PM
> > To: [EMAIL PROTECTED]
> > Subject: [DOTNET] Typed Dataset
> >
> >
> > Is there a utility for created typed objects from database
> > table structures? I know that I can use xsd.exe to create a
> > dataset inherited class, but it appears as if it needs to be
> > deserialized from XML.  Now, I understand I could do a FOR
> > XML in my stored proc, but I'd like to bring it back in
> > native format from the DB.  So, where do I go?
> >
> > --
> >
> > David B. Bitton
> > [EMAIL PROTECTED]
> > www.codenoevil.com
> >
> > Code Made Fresh DailyT
> >
> > You can read messages from the DOTNET archive, unsubscribe
> > from DOTNET, or subscribe to other DevelopMentor lists at
> > http://discuss.develop.com.
> >
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to