Question from the Entity Framework test

How to save changes in a .net entity framework context

Hard

You are using VS2010 and the .NET Framework 4.0 to develop an application. This application connects to a SQL Server database. You are using ADO.NET Entity Framework to manage persistence-ignorant entities.

You have an instance of an ObjectContext object named context. You make direct changes to the properties of several of the entities.

You need to save the values of the modified entities to the database. What code snippet will you use?

Author: Guillaume BroutStatus: PublishedQuestion passed 172 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!