is there a way, to find an entity aspect is new(added), is modified, or marked for deletion, in the memory cache.
1 Answer, 1 is accepted
0
Hristo Marinov
Telerik team
answered on 10 Dec 2012, 08:43 AM
Hello Sakar,
With the OpenAccessContext the state of an object is retrieved by the GetState method. Here is an example of how to use the GetState method:
ObjectState state = OpenAccessContext.PersistenceState.GetState(car);
Additional helpful information can be found in this article.
Also, the OpenAccessContext can retrieve collection of objects, grouped by state and type. This is accomplished by the methods: GetInserts, GetUpdates and GetDeletes. Here is a code-snippet: