DevForce Help Reference
Dot<T> Method
Example 


Provides for construction of "." notation in a dynamic query.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Shared Function Dot(Of T As MemberSelector)( _
   ByVal memberSelector As T, _
   ByVal propertyPath As String _
) As T
'Usage
 
Dim memberSelector As T
Dim propertyPath As String
Dim value As T
 
value = MemberSelectorExtensions.Dot(Of T)(memberSelector, propertyPath)
[Extension()]
public static T Dot<T>( 
   T memberSelector,
   string propertyPath
)
where T: MemberSelector

Parameters

memberSelector
propertyPath

Type Parameters

T
Example
public void DynamicGroupAndSum() {
  var query = EntityQuery.Create(typeof(Order), manager)
    .GroupBy(new ProjectionSelector("ShipCity"))
    .Select(
          new ProjectionSelector("Key", "ShipCity").Combine(
          new ProjectionSelector("Select", new ProjectionSelector("Freight")).Dot("Sum()").WithAlias("Sum")
    ));
  var list = query.Execute();
}
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

MemberSelectorExtensions Class
MemberSelectorExtensions Members

Send Feedback