Pardon my ignorance, but how would I create the "entityTypes" array to pass in?
(I'm new to interfaces, etc)
What I would then like to do is something like this:
IEnumerable<Type> TypeList;
foreach (Type t in ~all the objects in my business model~) { TypeList.Add(t); }
|
I know the syntax is way off for this, but perhaps you understand what I am getting at?
I noticed that the EntityClass object represents all the different objects in my model:
EntityList<EntityClass> melEC = new EntityList<EntityClass>(); melEC = MainPm.Manager.GetEntities<EntityClass>(); foreach (EntityClass ec in melEC ) { ~do something with the ec~ }
|
I tried this:
foreach (EntityClass ec in melEC) { MainPm.Manager.GetEntities(ec.GetType()); }
|
but ec.GetType() always returns <EntityClass>, of course...
Any ideas?
Thanks, Heather
Edited by HFloyd - 06-Nov-2008 at 3:55pm