Book a Demo

Author Topic: Can't define Generic .Net Interface  (Read 5400 times)

frik_stuart

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • MDA is the future!
    • View Profile
Can't define Generic .Net Interface
« on: February 10, 2009, 12:04:14 pm »
I have a .Net interface defined as follows:
public interface IRepository<T>

I can not find any way to define this Generic interface in EA since the "Details" tab where you define "Templates" is not available for interfaces like it is for classes. I have also tried reverse engineering the interface but it also does not seem to define the Type parameters.

Does anyone know how to do this in EA? Otherwise my round-trip engineering would be pretty useless if it can't handle this standard .Net2.0 functionality.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Can't define Generic .Net Interface
« Reply #1 on: February 11, 2009, 08:15:51 am »
Unfortunately, EA doesn't handle generic interfaces.

frik_stuart

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • MDA is the future!
    • View Profile
Re: Can't define Generic .Net Interface
« Reply #2 on: February 11, 2009, 11:04:00 am »
Ok thanks Simon. Do you know if this is on the Roadmap in the near future?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Can't define Generic .Net Interface
« Reply #3 on: February 12, 2009, 08:04:25 am »
It's one of the changes I'm desperate to see go in, but I'm note sure when that will happen.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Can't define Generic .Net Interface
« Reply #4 on: February 13, 2009, 06:20:17 am »
Please push for inclusion in EA 7.5 production. Not having this would essentially destroy compatibility with .Net 3.x and C# 3.0, not to mention VB 2008.

(IMHO) Failure to address this before production would seriously degrade the quality of support for these products, making the advertised feature set of EA 7.5 somewhat shaky.
No, you can't have it!

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Can't define Generic .Net Interface
« Reply #5 on: February 13, 2009, 06:27:41 pm »
It's not only .Net 3.x, but .Net 2.0. EA's inbuilt C# code generation is next to useless as long as there is no full support for generics.

Ok, code generation can be improved by working on the templates, but there's nothing like this for reverse engineering , and some .Net 2.0 constructs are simply being ignored by EA: not only generic interfaces, but also inheritance of generic classes.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Can't define Generic .Net Interface
« Reply #6 on: February 13, 2009, 10:13:58 pm »
Frank says it well.

These holes were hard to take before, but we could - and did - hold out hope that they would disappear in the next update, when EA supported current .Net and VS versions. This has often been mentioned, and we've been told to wait until the whole package could be released at once.

That time has come, and now it is time to deliver on these earlier issues.
No, you can't have it!