Questions tagged [objectcontext]

Core class within Entity Framework. Provides the methods to retrieve, query and manipulate entities within the entity model.

302 questions
-1
votes
1 answer

Refresh ObjectContext or recreate it to reflect changes made to the database?

I have a web service that exposes operations to and from a database. I'm using Entity Framework 4 for the DAL. I'm wondering what would be the best way to handle operations to and from the database. Would it be best not to keep alive an instance of…
scripni
  • 2,144
  • 2
  • 19
  • 25
-1
votes
1 answer

Why is ExecuteFunction method only available through base.ExecuteFunction in a child class of ObjectContext?

I'm trying to call ObjectContext.ExecuteFunction from my objectcontext object in the repository of my site. The repository is generic, so all I have is an ObjectContext object, rather than one that actually represents my specific one from the Entity…
Matt
  • 5,547
  • 23
  • 82
  • 121
1 2 3
20
21