How to get ObjectSet from ObjectContext? RRS feed

  • Question

  • I building a generic UI to view any ObjectSet in an ObjectContext.. But how do I get a particular ObjectSet from an ObjectContext?? Surely I dont have to use reflection to find it?!
    Friday, May 11, 2012 4:23 AM

All replies

  • Hi, 

    Do you mean how to create ObjectSet for a type from ObjectContext? you can use



    Does this answer your question?

    If this post answers your question, please click "Mark As Answer". If this post is helpful please click "Mark as Helpful".

    Friday, May 11, 2012 5:08 AM
  • Hi Mark Mnl,

    Welcome to MSDN Forum.

    I'm not clear about the question. Could you please post some code here? How did you get the ObjectContext and how did you let the use to choose a particular one? This is, so I can help you more effectively.

    Best Regards

    Allen Li [MSFT]
    MSDN Community Support | Feedback to us

    Wednesday, May 16, 2012 1:00 PM