StrataFrame Forum

Business Object namespace

http://forum.strataframe.net/Topic5846.aspx

By Tim Dol - 1/15/2007

I'm creating a business object library and I'm having a problem with namespaces. I manually typed in my namespace in the business object class and partial class, but when I rebuild the Partial, my namespace disappears, which makes sense, however I can't seem to see any place to enter a namespace on the business object...Please let me know if I'm missing something here.

Thanks

By StrataFrame Team - 1/16/2007

The BOMapper evaluates the namespace using reflection and then puts the namespace as the difference between the Default Namespace of the project and the class itself. 

What was the namespace that you typed in the main code file and the partial class and what is the default namespace on your project?

By Tim Dol - 1/16/2007

The namespace in the main code file and partial class is 'BusinessObjects'. The root namespace in the class library assembly is 'Avanti'.
By StrataFrame Team - 1/16/2007

You might try setting the namespace to BusinessObjects and building the solution before you go into the BOMapper and build the partial class... if that still doesn't do it, then set it, build it, and restart VS... there must be something hanging in the AppDomain's assembly cache keeping the type resolution service from properly finding the namespace for the business object.