IdeaBlade DevForce 2010 Help Reference
DefaultQueryStrategy Property
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class : DefaultQueryStrategy Property



Gets or sets the default QueryStrategy to use for all queries where the QueryStrategy is not set either by parameter or as part of the Query itself.

Syntax

Visual Basic (Declaration) 
Public Property DefaultQueryStrategy As QueryStrategy
Visual Basic (Usage)Copy Code
Dim instance As EntityManager
Dim value As QueryStrategy
 
instance.DefaultQueryStrategy = value
 
value = instance.DefaultQueryStrategy
C# 
public QueryStrategy DefaultQueryStrategy {get; set;}
C++/CLI 
public:
property QueryStrategy^ DefaultQueryStrategy {
   QueryStrategy^ get();
   void set (    QueryStrategy^ value);
}

Remarks

You can set the QueryStrategy used by an individual query using its EntityQuery.QueryStrategy property. The DefaultQueryStrategy is used when a query is executed and the strategy was not provided.

If not set, the default is a QueryStrategy of QueryStrategy.Normal.

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.