Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Jeff Odell on January 08, 2005, 09:31:14 am

Title: Generating Association Attribute in C#
Post by: Jeff Odell on January 08, 2005, 09:31:14 am
I have my preference, in the Options Dialog, Generation, Attribute/Operations section, for "Default name for associated attrib:" to

_$LinkClass

This will generate an attribute named (for example when linked to the Employee class):

_Employee

I'd like it to generate

_employee

Does anyone know what the tag is? (I tried $linkClass).

Thanks -

jlo
Title: Re: Generating Association Attribute in C#
Post by: Takeshi K on January 11, 2005, 04:26:19 pm
Hello,

'$LinkClass' is just string and it has no meaning.

You'll find this string in 'Linked Attribute Declaration' template of Code Template.

In this template, you can get attribute like '_employee'
if you use TO_LOWER macro.

Hope this helps.

--
t-kouno