Book a Demo

Author Topic: Source code engineering  (Read 2069 times)

devboy

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Source code engineering
« on: December 22, 2005, 04:57:03 am »
Hi,

I'm trying to work with c# source code engineering and can't quite get the hang of it so here's a few questions which are not really related to one another.

1) Can I change the default link role access type (having to change everything from public to private manually is annoying).

2) What's the best way to work with collections when generating code? i.e. how do I specify a collection in the model?

3) What does MDG link for .net do that I don't get with EA pro?  

4) Is there a way to change the syntax in which the code is generated? Such as curly brackets in same line as declaration or the next.

5) Is there a tutorial somewhere regarding how to actually work with source?

That's it for now.

Thanks,
DB
« Last Edit: December 22, 2005, 04:58:11 am by devboy »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Source code engineering
« Reply #1 on: December 27, 2005, 12:54:18 pm »
1) No. I don't think there is any way to set this default.

2) Each language has three different types of collection classes that can be set from the options dialog.  See http://sparxsystems.com.au/EAUserGuide/index.html?settingcollectionclasses.htm.

3) It updates Visual Studio and the corresponding project files.

4) Yes.  Have a look at the code templates to change any part of how code is generated.  There isn't any single setting curly bracket position, but the %PI=" "% statements in the Operation and Class templates are specifying how much space.  Removing them will leave the spacing at the default of a new line.

5) I don't think there is a tutorial, but what exactly are you after?