Book a Demo

Author Topic: Partial Classes  (Read 4838 times)

bjones

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • If i Post mY passworD herE i won't fOrget iT  ;)
    • View Profile
Partial Classes
« on: March 02, 2007, 10:33:25 am »
Don't know if we're doing it right, but reverse engineering partial classes (the class definition is spread across a couple files) doesn't quite work.  It creates a more than one object for the class.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Partial Classes
« Reply #1 on: March 02, 2007, 12:42:49 pm »
This may, in part, be because you can only associated one file per object for code synchronization purposes.

Paolo
(pun intentional  ;))
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

d_p_robinson

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Partial Classes
« Reply #2 on: March 23, 2007, 04:14:59 am »
Could the reverse engineer process add a <<Designer>> stereotype to the class generated from the Class.Designer.cs code? This would make it easier to identify the part of the class that the programmer is allowed to change.
David Robinson

CleverCoder

  • EA User
  • **
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: Partial Classes
« Reply #3 on: August 27, 2007, 05:25:24 am »
Good morning,

I just got my hands on EA for evaluation.. One of the first problems I ran into was how partial classes are (not) supported. First, I thought there was a serious bug during the reverse engineering process... where multiple model entities would be created for a single class. Took me awhile to find the cause.

Still waiting for the first response from the support team.. but maybe someone else knows. Is this something that is being worked on?  It's a small fire in my book. Causes much confusion and adding stereotypes are good from a designer standpoint, but can easily lose sync with the code base.

Best regards,
-Sean

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Partial Classes
« Reply #4 on: August 27, 2007, 06:18:07 am »
This is going to start being a serious problem for me, at least as far as generation (both directions) is concerned. Perhaps the Sparxians could chime in on this.

David
No, you can't have it!