Probably because console apps and classes in class libraries typically do
not require WYSIWYG type design. Where as windows and web forms do. This
also applies to user controls, etc - anything that by definition is going to
have composite controls/components on it.
Now, for console apps and regular classes, obviously the controls are
useless - there is no design surface to speak of. So you are left with
components - an example of which is the sqldataadapter. Now true, it is
possble for MS to have done something to help you out here - but would have
been a lot of extra work for them, for something frankly, not that useful.
Besides, you are better off not using the garbage the designer generates for
SQL related components. It is always better to write your own code and not
rely on the wizard, which not only generates a lof of extra stuff, but is
known to be buggy. Typically, the wizard really ties you down to specific
databases/tables, and is not very helpful in creating reusable code.
"Adam Clauss" <(E-Mail Removed)> wrote in message
news:u1%(E-Mail Removed)...
> This may be more of a Visual Studio question than a C# question, but it
came
> up within the context of a C# app, so here it is.
>
> In a Windows Form or a Web Form application, you can drag various
> DataAdapters and create DataSets bound to them so everything is strongly
> typed - a very nice feature.
>
> Why in the world can this not be done the same way for ANY type of
> application (say, Console, or Class Library). What do these features have
> to do with form applications?
>
> I know how to create the datasets myself (create a new dataset and, in
this
> case, since I'm working with SQLServer, I can just drag the table I want
> over from the Server Explorer window). But what about the DataAdapters?
Is
> there some way that I've missed to set them up in the same manner?
>
> Thanks!
>
> --
> Adam Clauss
> (E-Mail Removed)
>
>