Hello!
Please, advise how can I get reverse/forward code synchronizing working properly in the following situation:
Starting point: I work on the class diagram and then generate code (C# files). Everything is ok. Let say, I have "Class1" and "Class2". I also have an unidirectional association between them: Class1 -> Class2 with multiplicity 1 -> * and role name "Coll" for destination. I set (via Collection Classes option in Code generation for C#) the FinCollection as the Default Collection Class. Let's generate code (from scratch) for Class1. I got the following (and absolutely right!) code:
...
public FinCollection Coll;
...
Here my problems about to begin. After reverse synchronizing the model from this code EA automatically adds the +Coll member into attributes compartment of the Class1. So, I have now 1: An association with role name Coll and 2: attribute named Coll (redundant?). But, ok. Let say, I can stand it

because forward code generating seems know about it and DOES NOT generate TWO lines like this:
...
public FinCollection Coll;
public FinCollection Coll;
...
And now - the question: what can I do if I need that the code generated look like that:
...
public abstract FinCollection Coll { get; }
...
Obvious answer is the change Code Generation Template. I did that. I changed template for Linked Attribute Declaration and finally got the code I wanted (I even got it conditionally based on stereotype, that gives me possibility turn on/off this code generation behaviour). BUT! When I reverse synchronize such code, EA understand it as the property (and he is right!) and adds the +<<property>> Coll():FinCollection into operation compartment of the Class1.
Now, finally, in order to see my problem let's generate the code for the last time. Alas! We got weird result! Now I have TWO "Coll" members in my Class1.
...
public FinCollection Coll;
public abstract FinCollection Coll { get; }
...
Of course "public FinCollection Coll;" is redundant. I understand that 1st was generated due to my association (1 -> *) and the 2nd due to "+<<property>> Coll():FinCollection" that now in compartment of Class1.
The question is: how can I implement proper forward/reverse synchronizing vehaviour in the case described?
Thanks in advance.