nerdexam
Microsoft

70-516 · Question #25

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. The application uses the ADO.NET Entity Framework to model persistence-ignorant entities. The…

The correct answer is D. ObjectStateEntry.SetModifiedProperty. ObjectStateEntry.SetModifiedProperty(string propertyName) Method Marks the specified property

Manipulating and Validating Data

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. The application uses the ADO.NET Entity Framework to model persistence-ignorant entities. The application operates in a disconnected mode. You need to ensure that changes made to local entities while the application is in the disconnected mode are correctly persisted. Which method should you call before persisting changes?

Options

  • AObjectContext.Refresh
  • BDataContext.AcceptAllChanges
  • CObjectStateEntry.AcceptChanges
  • DObjectStateEntry.SetModifiedProperty

How the community answered

(44 responses)
  • A
    14% (6)
  • B
    7% (3)
  • C
    2% (1)
  • D
    77% (34)

Explanation

ObjectStateEntry.SetModifiedProperty(string propertyName) Method Marks the specified property

Topics

#Entity Framework#disconnected mode#ObjectStateEntry#SetModifiedProperty

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice