Select from following answers:- KeepCurrentValues
- OverwriteCurrentValues
- KeepChanges
- All of the above

- All Above
There are 3 ways provided by LINQ system to handle concurrency conflicts:
•KeepCurrentValues: When this option is specified and concurrency conflicts happen, LINQ keeps calling the LINQ entity object values as it is and does not push the new values from the database into the LINQ object.
•OverwriteCurrentValues: When this option is specified, the current LINQ object data is replaced with the database values.
•KeepChanges: This is the most weird option, but can be helpful in some cases. When we talk about classes, it can have many properties. So properties which are changed are kept as they is but the properties which are not changed are fetched from the database and replaced.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator