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)
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)
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.
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