Re: Designer generated code fails to compile
- From: "Cowboy \(Gregory A. Beamer\)" <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 11 Apr 2008 09:03:06 -0500
I am not sure what is going on here, from your explanation.
I can tell you that you cannot get the tool to change it spots. It will
always use explicit naming. You can, if you know the correct information, go
through and whack it with Replace, however.
I have read your post a few times and I am not sure how you ended up with
this clash in the first place. If you can figure that out, the fact the tool
is explicit should not matter.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss
or just read it:
http://gregorybeamer.spaces.live.com/
*************************************************
| Think outside the box!
|
*************************************************
"Pat Moran" <09081947@xxxxxxxxxxxxxxxx> wrote in message
news:9C22FD17-351E-46B2-9C23-9584A0144555@xxxxxxxxxxxxxxxx
I have a project whose default name space is Wearther and 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 designed 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.
Thanks
Pat
.
- Prev by Date: RE: linqdatasource runtime connection string
- Next by Date: RE: linqdatasource runtime connection string
- Previous by thread: Inherited DataTable Serialization Problem in WCF
- Next by thread: Re: Designer generated code fails to compile
- Index(es):
Relevant Pages
|