William
Tue Jun 01 21:54:47 CDT 2004
Only if you run xsd.exe against it. You can't do it dynamically at runtime
. Well technically you can Process.Start(xsd.exe) but that won't get you
anything without a LOT of other work that is totally not worth it.
--
W.G. Ryan MVP Windows - Embedded
http://forums.devbuzz.com
http://www.knowdotnet.com/dataaccess.html
http://www.msmvps.com/williamryan/
"Scott M." <s-mar@nospam.nospam> wrote in message
news:O$7edIESEHA.2876@TK2MSFTNGP09.phx.gbl...
> Actually Kevin, my question is, can you make a typed dataset completely
from
> handwritten code, not using the IDE?
>
> "Kevin Yu [MSFT]" <v-kevy@online.microsoft.com> wrote in message
> news:p8xszDESEHA.1516@cpmsftngxa10.phx.gbl...
> > Hi Scott,
> >
> > First of all, I would like to confirm my understanding of your issue.
From
> > your description, I understand that you need to use intellisense on a
> typed
> > DataSet when it is made in code. If there is any misunderstanding,
please
> > feel free to let me know.
> >
> > As far as I know, typed DataSets are made in code. When you have created
> > your .XSD file in IDE, VS.NET will generate class (.cs or .vb) file
> > automatically according to the schema files using xsd.exe. The generated
> > file will be put together with the schema. To see the .cs or .vb file
> that
> > has been generated, here are the steps:
> >
> > 1. Click on the button Show all files in the Solution Explorer.
> > 2. If your typed DataSet is MyDataSet, expand MyDataSet.xsd in the
> Solution
> > Explorer.
> > 3. Double click MyDataSet.cs or MyDataSet.vb to see the typed DataSet
> class
> > definition.
> >
> > After you have built the project, the typed DataSet structure can be
used
> > for intellisense. For example, if you have two tables in it, named
> > Customers and Orders, when you need to get the reference for one of the
> > tables, you can simple use myDataSet.Orders instead of
> > myDataSet.Tables["Orders"].
> >
> > HTH. If anything is unclear, please feel free to reply to the post.
> >
> > Kevin Yu
> > =======
> > "This posting is provided "AS IS" with no warranties, and confers no
> > rights."
> >
>
>