DevForce Help Reference
PreserveName Property


Whether the method prefix should be retained when used in an EntityQuery.
Syntax
'Declaration
 
Public Property PreserveName As Boolean
'Usage
 
Dim instance As QueryAttribute
Dim value As Boolean
 
instance.PreserveName = value
 
value = instance.PreserveName
public bool PreserveName {get; set;}
Remarks
By default PreserveName is false and the method prefix ("Get", "Fetch", "Find", "Query", "Retrieve", or "Select") will not be used in an EntityQuery. For example, if you have a method named "GetFoos" which returns Foo objects, the query would be: var query = new EntityQuery<Foo>("Foos") If PreserveName is true for the method, then the query would be: var query = new EntityQuery<Foo>("GetFoos")
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

QueryAttribute Class
QueryAttribute Members

Send Feedback