New Posts New Posts RSS Feed: List of changes in EntityManager
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

List of changes in EntityManager

 Post Reply Post Reply
Author
keval View Drop Down
Newbie
Newbie
Avatar

Joined: 16-Apr-2008
Location: India
Posts: 15
Post Options Post Options   Quote keval Quote  Post ReplyReply Direct Link To This Post Topic: List of changes in EntityManager
    Posted: 03-Jun-2008 at 6:40am
Hi
 
How can i fetch the list of entites which are changed but not updated in DB
 
i.e. I  m not talking about the EntityManager.HasChanges() property but the list of things which are changed in persistence server (Cache) but not reflected in DB.
 
 
Thanks
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 03-Jun-2008 at 9:33am
[DevForce Beta1 only]
 
You can use either the FindEntities<T>(DataRowState) or FindAllEntities(DataRowState) methods on the EntityManager.  Since DataRowState is a flag, you can combine the row states you're looking for into one method call.
Back to Top
keval View Drop Down
Newbie
Newbie
Avatar

Joined: 16-Apr-2008
Location: India
Posts: 15
Post Options Post Options   Quote keval Quote  Post ReplyReply Direct Link To This Post Posted: 04-Jun-2008 at 2:43am
Thanks for the solution
 
it worked for Beta 1 but what abt the Beta 2 version?
 
If we move to Beta 2, then what solution can be adapted for this.
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 04-Jun-2008 at 8:33am

We've changed the API in Beta2, but the functionality is still there.   You'll call FindEntities<T>(EntityState) or FindEntities(EntityState) instead.   I hope you do move to Beta2, we've made a lot of bug fixes and usability enhancements.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down