There is a section in the .xsd file for a typed DataSet in .NET <Connections>that contains a list of any data connections that I used to configure DataTables and TableAdapters.
There are times when I prefer not to have them there. For example, sometimes I prefer to pass the connection string to the user constructor and use this instead of searching in settings, .config, etc.
But it seems that if I delete the connection strings from this section (leaving it empty) or completely delete the section, the DataSet code generation tool will fail. If I do not delete them, the DataSet catches when I put it in another project, because it cannot find the settings for these connection strings.
Is it possible to specify a typed DataSet so as not to worry about any connections? (Obviously, I will need to provide it with a connection if I modify any SQL TableAdapter file or saved procs, but this should be my problem.)
source
share