Select from following answers:- Call the Attach method of the collection associated with the Employee table. Call SubmitChanges.

- Add all results programmatically using InsertOnSubmit and call SubmitChanges with ContinueOnConflict.
- Execute the same query used to create the result set. Reconcile the result sets programmatically and call SubmitChanges.
- All Above
The Attach method is provided to enable you to put entities into a new data context after they have been detached. Call this method before calling SubmitChanges.
Although executing the same query used to create the result set and then programmatically reconciling the result sets before calling SubmitChanges might work, it takes a considerable amount of effort.
Adding all results programmatically using InsertOnSubmit and calling SubmitChanges inserts redundant rows. This is not the intended result.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator