开发者

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

开发者 https://www.devze.com 2023-03-16 00:36 出处:网络
Where can I find the list of all the interfaces commonly used by MyGeneration? (I am especially asking this to learn w开发者_StackOverflowalking through all the tables in my DataBase with foreach loo

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

(I am especially asking this to learn w开发者_StackOverflowalking through all the tables in my DataBase with foreach loop)


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消