Briefly describe the ObjectContext class ?

 Posted by Akiii on 10/29/2012 | Category: ASP.NET Interview questions | Views: 3152 | Points: 40
Answer:

ObjectContext class represents EntityContainer which you can see from XML view of Model1.edmx or from EDM property window. You can call this as context class.

This is the primary class for interacting with entity objects and database. An instance/object of the ObjectContext class encapsulates the connection to the database, metadata that describes the model, and an ObjectStateManager object that tracks objects during create, update, and delete operations.

With the help of this class you can access all the tables and columns in the underlying database.


Thanks and Regards
Akiii


| Alert Moderator 

Comments or Responses

Login to post response