DevForce Help Reference
MergeStrategy Enumeration


Strategy to control how Entities are merged into an EntityManager's cache.
Syntax
'Declaration
 
Public Enum MergeStrategy 
   Inherits System.Enum
   Implements System.IComparable, System.IConvertible, System.IFormattable 
'Usage
 
Dim instance As MergeStrategy
Members
MemberDescription
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).
PreserveChangesUpdateOriginalPreserves the persistent state of the cached entity whether it is current or not. Overwrites the Original version of the entity if obsolete.
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         IdeaBlade.EntityModel.MergeStrategy

Requirements

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

See Also

Reference

IdeaBlade.EntityModel Namespace

Send Feedback