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