Object Context of ADO.Net Entity Framework

To retrieve data from the database, the ObjectContext class is needed. This class defi nes the mapping fromthe entity objects to the database.

The ObjectContext class provides several services to the caller:


1.It keeps track of entity objects that are already retrieved. If the object is queried again, it is taken from the object context.


2.It keeps state information about the entities. You can get information about added, modified, anddeleted objects.


3.You can update the entities from the object context to write the changes to the underlying store.

posted @ 2011-06-15 17:20  HelloWorld.Michael  阅读(197)  评论(0)    收藏  举报