IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > MemberSelectorExtensions Class : Dot<T> Method |
'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
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(); }
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