Print Page | Close Window

List of changes in EntityManager

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=823
Printed Date: 19-Apr-2025 at 5:04am


Topic: List of changes in EntityManager
Posted By: keval
Subject: List of changes in EntityManager
Date 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



Replies:
Posted By: kimj
Date 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.


Posted By: keval
Date 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.


Posted By: kimj
Date 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.




Print Page | Close Window