none
In-memory query: DBSet vs ObjectSet RRS feed

  • Question

  • hi

    In-memory query performed by DBSet<T>.Local will also return newly added entities that haven't yet been saved to the database. Is there some functionality that would allow us to perform such an in-memory query on an ObjectSet ( BTW - I know we could use ObjectStateManager.GetObjectStateEntries to get similar results )? 

    Thank you

    Wednesday, April 18, 2012 6:56 PM

Answers

  • ObjectSet doesn't contain such a feature, if you really want to load all the reacords which state is not deleted, the only thing you  can do is like what you have know, through ObjectStateManager to get the entries and judge records' state.

    Fighting like Allen Iverson. Neve give up!

    Sunday, April 22, 2012 8:36 AM