Book a Demo

Author Topic: Code Generation changing attribute names  (Read 8054 times)

Adrian P

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Code Generation changing attribute names
« on: December 28, 2011, 06:43:56 pm »
Hi,

Whenever I do a Code Engineering -> Generate Source Code and then click Generate, the code is generated as expected, but all attributes that exist in the model wind up prefixed by m_ and the first letter capitalised. So for example, accessInteractionTable becomes m_AccessInteractionTable.

I have changed every variable I can find that seems related to this and still it occurs. I attempted to change the "Remove prefixes when generating Get/Set properties" on the Source Code Engineering options page, Removed m_ from the Default name for associated on the Attribute/Operations page, and can't see anything related on the C# page. I have even looked in the Code Generation Templates and can't see anything related.  :(

Am I missing something here or is there an actual fault?

Regards,
Adrian Pavone.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code Generation changing attribute names
« Reply #1 on: January 05, 2012, 08:58:34 am »
I haven't seen anything like that before.

The only thing that I can think of that could cause the name to be generated differently would be the code templates. Specifically the Attribute Declaration and Linked Attribute Declaration templates.