Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
Your application uses the following code to submit changes to a database using a strongly typed DataContext named db:
catch (ChangeConflictException e)
foreach (ObjectChangeConflict occ in db.ChangeConflicts)
// Overwrite values
You must add code to resolve conflicts such that:
* Original property values of changed properties must not be overwritten with values received from the database.
* Client changes to properties must be preserved.
What should you do?
on 9/9/2012 | Category:
ADO.NET Interview questions
| Views: 1362 |
Select from following answers:
Call ObjectChangeConflict.Resolve with KeepChanges.
Call ObjectChangeConflict.Resolve with OverwriteCurrentValues.
Calling ObjectChangeConflict.Resolve with KeepChanges forces the Resolve method to keep the current value that has been changed, but it updates (merges) other values with the database values. Current, modified values are preserved.
Calling ObjectChangeConflict.Resolve with KeepCurrentValues forces the Resolve method to swap the original value with the values retrieved from the database. Current, modified values are preserved.
Show Correct Answer
MeasureUp.Com | |
< Previous :
What is the difference between Canvas and SVG?
Next > :
Your application uses the following code to update ...
Comments or Responses
Login to post response
More Interview Questions by Rajkatie
Your application uses the following code to update a database using a ...
You use DataContext to execute a LINQ query to return a database table ...
You are implementing ASP.NET Web service methods named GetEmployees an ...
You use DataContext to execute a query on a database. Your code modifi ...
You use DataContext to execute a LINQ query against a database. You ma ...
Your application accesses a table named Orders from a Microsoft SQL Se ...
Your Microsoft SQL Server application database includes a table named ...
Your Microsoft SQL Server database includes the following stored proce ...
Latest Interview Questions
What is the the Page_Load Event in ASP.Net?
What is the Garbage Collection in ASP.Net ?
What is the .Net framework?
What is ASP.NET AJAX?
Mention the ways to initiate the workflow in Sharepoint ?
What is the command to take backup and restore for sharepoint site ?
What is meant by a Site definition ?
What are Site Columns ?