Re: namespace problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Jon



> Hang on - is Mapping a class as well as a namespace, or did you mean to
> write new Server.Business.Mapping.Facility()?

No, Mapping is a namespace of b2b.Server.Business and Facility is a
class there.

I map there DataTables to my domain objects.


>
> Fortunately, with using declarations it shouldn't be a problem - just
> declare
>
> using Server.Business.Mapping;
>
> at the top of your class.
>


Well, the problem is, i have also a Facility class in
Server.Business.Entities, so i must use for example

Entities.Facility facility = new Entities.Facility();
Mapping.Facility facilityMapper = new Mapping.Facility();

and so on. but with declaring "using b2b.Server.Business", those both
namespaces (Entities and Mapping) don't appear..

Steve.
.



Relevant Pages

  • Re: namespace problem
    ... Mapping is a namespace of b2b.Server.Business and Facility is a ... with using declarations it shouldn't be a problem - just ... > namespaces (Entities and Mapping) don't appear.. ...
    (microsoft.public.dotnet.languages.csharp)
  • Namespace Qualification [was Re: Linux compiling]
    ... I'd rather use a search or search / replace facility on 50,000 lines of code ... > I haven't come across any problems so far using namespace ... In order to allow use of the same tag name to identify different ...
    (alt.comp.lang.learn.c-cpp)
  • Re: namespace question
    ... This brings up the question of standard terminology (e.g. for namespace). ... my take on 'namespace' is a name->value mapping. ... Then follows a discussion of various python mechanisms that do that (whether via ... model of namespaces and their access mechanisms, ...
    (comp.lang.python)
  • web reference transform map
    ... I'm trying to use an XML message that I get back from a SOAP call as the source ... schema in a mapping which seems to work fine until I try to compile at which ... namespace 'BiztalkProcess' ...
    (microsoft.public.biztalk.general)
  • Re: Axis 1.x: Java2WSDL namespace options
    ... -p [mapping from package to namespace] ... Will they affect the required deployment ... It is usually a very good thing to do the mapping. ...
    (comp.lang.java.programmer)