W
wildThought
If I get an object generated by SQL Metal I can do a call like:
db.Persons.Add(new Person(){name = "ED"};
So far, so good. However, we are loading a DB from MetaData, I need
to do this via reflection.
If I do db.GetType().GetProperty("Persons")
No Problem. I get the right object.
Now, when I do
db.GetType().GetProperty("Persons").GetType().GetMethods()
The Add method is not reflected, I wanted to be able to Dynamically
Invoke this object, but it does not show up as avalid Method.
Any Thoughts?
db.Persons.Add(new Person(){name = "ED"};
So far, so good. However, we are loading a DB from MetaData, I need
to do this via reflection.
If I do db.GetType().GetProperty("Persons")
No Problem. I get the right object.
Now, when I do
db.GetType().GetProperty("Persons").GetType().GetMethods()
The Add method is not reflected, I wanted to be able to Dynamically
Invoke this object, but it does not show up as avalid Method.
Any Thoughts?