IdeaBlade DevForce 2010 Help Reference
MergeStrategy Enumeration
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace : MergeStrategy Enumeration



Strategy to control how Entities are merged into an EntityManager's cache.

Syntax

Visual Basic (Declaration) 
Public Enum MergeStrategy 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
Visual Basic (Usage)Copy Code
Dim instance As MergeStrategy
C++/CLI 
public enum class MergeStrategy : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  

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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.