0

Where can I find the list of all the interfaces commonly used by MyGeneration?

(I am especially asking this to learn walking through all the tables in my DataBase with foreach loop)

pencilCake
  • 51,323
  • 85
  • 226
  • 363

2 Answers2

0

I hope you have some common way of identifiying your entity classes (such as a common base class, or implemented interface). Then you can do a reflection query like:

from t in typeof(Entity).Assembly.ExportedTypes
where typeof(Entity).IsAssignableFrom(t) || t.GetInterfaces.Any(i => i == typeof(CommonInterface))
select t

No compiler at hand, but this is the broad direction to go.

Ruben Bartelink
  • 59,778
  • 26
  • 187
  • 249
Johannes Rudolph
  • 35,298
  • 14
  • 114
  • 172
0

if you are asking about the MyGeneration Code Generator you probaly need the interfaces to the databasemodell found here in the My Generation svn Repository

k3b
  • 14,517
  • 7
  • 53
  • 85