Which code segment should you insert at line 04?
A. context.MergeOption = MergeOption.AppendOnly;
B. context.MergeOption = MergeOption.PreserveChanges;
C. context.MergeOption = MergeOption.OverwriteChanges;
D. context.MergeOption = MergeOption.NoTracking;
Answer:B
Which code segment should you insert at line 04?
A. context.MergeOption = MergeOption.AppendOnly; B. context.MergeOption = MergeOption.PreserveChanges; C. context.MergeOption = MergeOption.OverwriteChanges; D. context.MergeOption = MergeOption.NoTracking;
Explanation: PreserveChanges - Objects that do not exist in the object context are attached to the context.