Returns a new
ProjectionSelector with the specified alias.
Syntax
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