You are implementing a library that uses Entity Framework. You create several repository classes to isolate domain objects from details of Entity Framework persistence. You create a unit of work class to track the changes to entities during one logical transaction. When a logical transaction enlists operations using different repository objects, the repositories will share a unit of work instance. You need to decide where to create ObjectContext instances.

What should you do?

 Posted by Rajkatie on 8/31/2012 | Category: ADO.NET Interview questions | Views: 1197 | Points: 40
Select from following answers:
  1. Create an ObjectContext instance for each unit of work instance.
  2. Create an ObjectContext instance for each repository instance.
  3. Create an ObjectContext instance for each repository method.
  4. All Above

Show Correct Answer


Source: MeasureUp.com | | Alert Moderator 

Comments or Responses

Login to post response