MergeOption Enumeration

 

The different ways that new objects loaded from the database can be merged with existing objects already in memory.

Namespace:   System.Data.Entity.Core.Objects
Assembly:  EntityFramework (in EntityFramework.dll)

public enum MergeOption

Member nameDescription
AppendOnly

Will only append new (top level-unique) rows. This is the default behavior.

NoTracking

Will not modify cache.

OverwriteChanges

Same behavior as LoadOption.OverwriteChanges.

PreserveChanges

Same behavior as LoadOption.PreserveChanges.