You retrieved a row of data into an entity object by using a LINQ to SQL DataContext object. You haven't made any changes to the object, but you know that someone else has modified the data row in the database table, so you rerun your query, using the same DataContext object, to retrieve the updated data.

What can be said about the result of the second query?

 Posted by Rajkatie on 8/6/2012 | Category: ADO.NET Interview questions | Views: 1669 | Points: 40
Select from following answers:
  1. It returns the updated data and you can use it immediately.
  2. An exception is thrown because you already have the object, so you can't re-query unless you create a new DataContext object.
  3. The changes are thrown out and you use the cached data, so you don't see the changes.
  4. All Above

Show Correct Answer

Source: | | Alert Moderator 

Comments or Responses

Login to post response