MSDataSetGenerator generates code which references the wrong names

P

Pat Moran

I have a project whose default name space is Wearther and a form in the
project
which is in this default namespace. I have also generated a dataset and
adapters to access a table in a database. I am using as a datasource this
dataset via the generated DatasetBindingSource.

The problem is that the code the designer generates includes the lines

this.wEATHERDETAILSTableAdapter = new
Weather._WeatherDetailsDataSetTableAdapters.WEATHERDETAILSTableAdapter();
this._WeatherDetailsDataSet = new Weather._WeatherDetailsDataSet();

which explicitly specify the Weather namespace although the class is
actually in this namespace and so the compilation fails unless I remove the
namespace qualification by hand.

How do I stop the designer from setting the namespace explicitly.
 
P

Per Jespersen

Did you ever get a fix for this? I am having the exact same problem, and it is driving me crazy, so any pointer you have got would be helpful.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top