Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
You are implementing a method that uses Entity Framework POCO entities that do not support proxies. This method retrieves a Product entity and changes its Status property. You need to ensure that the ObjectStateManager tracks this change so that the data source can be updated.
Which ObjectContext method should you call?
on 9/20/2012 | Category:
ADO.NET Interview questions
| Views: 1232 |
Select from following answers:
The ObjectContext's DetectChanges method ensures that ObjectStateEntry changes are synchronized with changes in all objects that are tracked by the ObjectStateManager. Call this method when you are using POCO entities without proxies to ensure that changes are synchronized.
The ObjectContext's SaveChanges method writes changes to the data source. This method does not ensure that ObjectStateEntry changes are synchronized with changes in all objects that are tracked by the ObjectStateManager. Changes must be synchronized before the SaveChanges method is called.
Show Correct Answer
MeasureUp.Com | |
< Previous :
You define an Entity Data Model that maps the inse ...
Next > :
You are implementing a method that uses Entity Fra ...
Comments or Responses
Login to post response
More Interview Questions by Rajkatie
You are implementing a method that uses Entity Framework POCO entities ...
You are implementing a method named DeleteProduct. This method first r ...
You are implementing a method that uses Entity Framework-generated ent ...
You are implementing an Entity Framework application. A method retriev ...
You add code that modifies Entity Framework POCO entities with proxies ...
You add code that modifies Entity Framework entities. You need to use ...
You are developing a smart client application. Your code uses a strong ...
What is WinRT ?
Latest Interview Questions
What is GAC?
What makes a pattern?
What do you mean by Framework?
Tell some benefits of N-Tire architecture
What do you mean by Architectural Style?
List some of the architectural design principle
Tell us some of the importance of software architecture
Explain the 4+1 View Model