Re: Designer generated code fails to compile



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



.



Relevant Pages

  • Re: I really hate .NET especially inside Delphi
    ... The question answers itself - you can't preserve the implicit make ... Since all the tooling around the language is predicated on ... packages, maybe, just maybe a move to explicit make logic would work. ... I can put that class in the namespace it logically belongs in, ...
    (borland.public.delphi.non-technical)
  • Re: Puzzling OO design problem
    ... > since you explicit allowed metaprogramming hacks :-), ... from version_1 import Namespace as PreviousNamespace ... George ...
    (comp.lang.python)
  • Re: Network namespaces a path to mergable code.
    ... patches just introducing namespaces for sockets in 2 ways: ... function parameters and using implicit current context. ... So I think the abstraction that we use to access per network namespace ... The explicit versus implicit lookup is just ...
    (Linux-Kernel)
  • Re: I really hate .NET especially inside Delphi
    ... The question answers itself - you can't preserve the implicit make logic ... would the move to explicit make logic bring any ... explicit make system of a language (like Chrome, ... So when I write a class that extends a class in some other namespace, ...
    (borland.public.delphi.non-technical)
  • Re: Deriving from custom forms in C++, is it possible?
    ... just at my work account.. ... The only other thing I can really think of is dealing with constructors. ... I guess the reason for this is that the designer ... takes the default namespace, then form name to name all the resources. ...
    (microsoft.public.dotnet.languages.vc)