IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace : MergeStrategy Enumeration |
'Declaration
Public Enum MergeStrategy Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
'Usage
Dim instance As MergeStrategy
public enum MergeStrategy : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
NotApplicable | No merge action applies because there is no data source data. This merge strategy must be used – and may only be used – with the CacheOnly fetch strategy. |
OverwriteChanges | Overwrites the cached entity with incoming data and uses the EntityState of the incoming entity (will be Unchanged if the incoming entity is from the data source). |
PreserveChanges | Preserves (does not overwrite) any existing entities that have been changed (modified, added or deleted). |
PreserveChangesUnlessOriginalObsolete | Preserves the persistent state of the cached entity if the entity is current. Overwrites an entity if it is obsolete and gives it the EntityState of the incoming entity (will be Unchanged if the incoming entity is from the data source). |
PreserveChangesUpdateOriginal | Preserves the persistent state of the cached entity whether it is current or not. Overwrites the Original version of the entity if obsolete. |
System.Object
System.ValueType
System.Enum
IdeaBlade.EntityModel.MergeStrategy
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2