Book a Demo

Author Topic: How do you model Partial Classes in EA.  (Read 6085 times)

FREDY COREA

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How do you model Partial Classes in EA.
« on: July 11, 2008, 07:54:15 am »

When I reverse engineered my project they appear as separated entities in the diagram.

In VS they are automatically joined into one diagram.

What do I have to do?

Regards
Fredy

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How do you model Partial Classes in EA.
« Reply #1 on: July 11, 2008, 08:26:57 am »
EA currently supports partial classes by keeping them separate for two reasons.
 - So that code engineering can be performed on any of the parts.
 - To allow members to be added to the required class part/file.

We realise that this doesn't allow for a unified representation of the class as a whole, and that many users will have this requirement.  However, we believe that it is the best solution available at the moment.

At this stage we are unable to give a timeframe for when we would allow a unified representation of partial classes.

Kevin G. Watson

  • EA User
  • **
  • Posts: 217
  • Karma: +0/-0
  • I love EVERYTHING including Microsoft
    • View Profile
Re: How do you model Partial Classes in EA.
« Reply #2 on: July 13, 2008, 03:55:15 am »
Hi' Simon

Any idea when EA will be providing support for C# v3 ?

I'm not sure that I like a unified class 'only'... the whole point of partial classes was to seperate 'UI designer / generated' code from user code... it might also provide a simple form of Aspect Orientated Programming.

I'd look to the Project Browser, 'Unified Class', composed of 'Parts'... then I 'd be able to drag whatever I wanted.... perhaps parts are more like compartments ( show or hide at will ).

And how you add a 'new EA Partial bit'....?

Kevin ;) [smiley=2vrolijk_08.gif]

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How do you model Partial Classes in EA.
« Reply #3 on: July 14, 2008, 12:12:07 pm »
I'm hoping to add support for C# 3.0 (which has nothing at all to do with partial classes) to our next major build.

In the mean time, I'm offering any registered users and MDG technology that gets them working with C# 3.0 and VB.Net 9.0 if they contact sparx support directly.

As far as partial classes seperating 'UI designer / generated' code from user code.  That's something that EA's implementation does quite well, but I can't comment on when you might get any of the different features that you would like for partial classes.
« Last Edit: July 14, 2008, 12:12:44 pm by simonm »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How do you model Partial Classes in EA.
« Reply #4 on: July 14, 2008, 09:18:35 pm »
Thanks Simon,

I've fired in a request. This will be a great help as a stepping stone.

David
No, you can't have it!

Kevin G. Watson

  • EA User
  • **
  • Posts: 217
  • Karma: +0/-0
  • I love EVERYTHING including Microsoft
    • View Profile
Re: How do you model Partial Classes in EA.
« Reply #5 on: July 24, 2008, 09:49:52 pm »
Hi Simon

Sorry it's taken me so long to get back..... and thank you.

I did know that partial classes and C# 3 weren't connected ( truely partial was a v2 introduction ;), but I'd noticed some bits of code that EA was not getting... we'd switched to V2k8.

Is the next major build 7.2 or 8.0?

Kevin [smiley=2vrolijk_08.gif]  

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How do you model Partial Classes in EA.
« Reply #6 on: July 24, 2008, 10:33:45 pm »
Hi Kevin,

The historical pattern would suggest 7.5, then 8.0. I've seen no compelling evidence that this will change.

Given that the MDG products are now providing some support for VS 2008 I suspect - without proof - that it's reasonable to hope for some support in 7.5. As to schedule, that's still a mystery. My (real) guess would be towards year end. It's a long time to wait if you're actively modeling in this paradigm. I know; me too.

David
No, you can't have it!