IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class > GroupBy Method : GroupBy(ITypedEntityQuery,IProjectionSelector) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Function GroupBy( _ ByVal source As ITypedEntityQuery, _ ByVal keySelector As IProjectionSelector _ ) As ITypedEntityQuery
'Usage
Dim source As ITypedEntityQuery Dim keySelector As IProjectionSelector Dim value As ITypedEntityQuery value = EntityQueryExtensions.GroupBy(source, keySelector)
[Extension()] public static ITypedEntityQuery GroupBy( ITypedEntityQuery source, IProjectionSelector keySelector )
var mgr = new DomainModelEntityManager(); var entityType = typeof(Customer); var rootQuery = EntityQuery.Create(entityType); var ps = new ProjectionSelector("Country"); var query = rootQuery.GroupBy(ps); var results = 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