DevForce Help Reference
FetchStrategy Enumeration


An enum used when retrieving entities to determine where to look and in what order.
Syntax
'Declaration
 
Public Enum FetchStrategy 
   Inherits System.Enum
   Implements System.IComparable, System.IConvertible, System.IFormattable 
'Usage
 
Dim instance As FetchStrategy
Members
MemberDescription
CacheOnly Retrieve entities from the cache only.
DataSourceAndCache Retrieve entities from both the backend data source and the cache and merge the two result sets.
DataSourceOnly Retrieve entities from the back-end data source only.
DataSourceThenCache Retrieve entities from the backend data source, add them to the cache, and then retrieve entites that are in the cache.
Optimized The best strategy for the environment. If the query is invertible then retrieve entities from the cache, and if not in cache, the back-end data source. If not the retrieve the entities from the back end data source only. For Windows UWP, always retrieve from the back end data source.
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         IdeaBlade.EntityModel.FetchStrategy

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