IdeaBlade DevForce 2010 Help Reference
PreserveName Property
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core.DomainServices Namespace > QueryAttribute Class : PreserveName Property



Whether the method prefix should be retained when used in an EntityQuery.

Syntax

Visual Basic (Declaration) 
Public Property PreserveName As Boolean
Visual Basic (Usage)Copy Code
Dim instance As QueryAttribute
Dim value As Boolean
 
instance.PreserveName = value
 
value = instance.PreserveName
C# 
public bool PreserveName {get; set;}
C++/CLI 
public:
property bool PreserveName {
   bool get();
   void set (    bool value);
}

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 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.