Create a 
ProjectionSelector from the specified method name and projection selector.
            
            
            
Syntax
            Parameters
- methodName
 
- Any Enumerable method that takes either a predicate or a projection expression.  InstanceType must be an IEnumerable.
 - projection
 
- alias
 
             
            
            
            
            
            
Example
| C# |  Copy Code | 
|---|
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 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