IdeaBlade DevForce 2010 Help Reference
RestoreStrategy Constructor
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > RestoreStrategy Class : RestoreStrategy Constructor



restoreSaveOptions
Whether the EntityManager.DefaultSaveOptions should be restored using the value in the EntityCache
restoreQueryStrategy
Whether the EntityManager.DefaultQueryStrategy should be restored using the value in the EntityCache
mergeStrategy
The merge strategy to use when restoring the EntityCache
Initialize a new RestoreStrategy.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal restoreSaveOptions As Boolean, _
   ByVal restoreQueryStrategy As Boolean, _
   ByVal mergeStrategy As MergeStrategy _
)
Visual Basic (Usage)Copy Code
Dim restoreSaveOptions As Boolean
Dim restoreQueryStrategy As Boolean
Dim mergeStrategy As MergeStrategy
 
Dim instance As New RestoreStrategy(restoreSaveOptions, restoreQueryStrategy, mergeStrategy)
C# 
public RestoreStrategy( 
   bool restoreSaveOptions,
   bool restoreQueryStrategy,
   MergeStrategy mergeStrategy
)
C++/CLI 
public:
RestoreStrategy( 
   bool restoreSaveOptions,
   bool restoreQueryStrategy,
   MergeStrategy mergeStrategy
)

Parameters

restoreSaveOptions
Whether the EntityManager.DefaultSaveOptions should be restored using the value in the EntityCache
restoreQueryStrategy
Whether the EntityManager.DefaultQueryStrategy should be restored using the value in the EntityCache
mergeStrategy
The merge strategy to use when restoring the EntityCache

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.