Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: idof on February 06, 2006, 09:09:20 am

Title: namespace alias in parameters - c#
Post by: idof on February 06, 2006, 09:09:20 am
Hi all,
I use namespace alias if c# to specify alternative names for my namespaces in the code.
When I add an operation to a class and state that the parameter type of the parameters is myAlias.myType, everything works ok, but when I press the "save" button, the "myAlias" is deleted, probably because "myType" is recognized by EA (since I've added this class to the package).
Is there a way to make it stick so I won't have to fix the code every time it's generated ?

Thanks,
Ido.
Title: Re: namespace alias in parameters - c#
Post by: Eve on February 06, 2006, 02:08:32 pm
This is a problem with the way the inplace editor handles types.  You can get around it by openning the parameters dialog and typing the path in there.
Title: Re: namespace alias in parameters - c#
Post by: idof on February 07, 2006, 12:23:30 am
Hi,
I tried doing that but what happened is this:
1. I've created a new method (operation)
2. Pressed the parameters button
3. Added patameters with aliases
4. Saved the operation info
So far it works, but ... :
5. Changed the name of the operation
6. pressed "save" again
In the second save, the EA automatically removes the aliases from the parameters, even though I haven't touched that field.