IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class > Any Method : Any(ITypedEntityQuery,IPredicateDescription) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Function Any( _ ByVal source As ITypedEntityQuery, _ ByVal predicateDescription As IPredicateDescription _ ) As Boolean
'Usage
Dim source As ITypedEntityQuery Dim predicateDescription As IPredicateDescription Dim value As Boolean value = EntityQueryExtensions.Any(source, predicateDescription)
[Extension()] public static bool Any( ITypedEntityQuery source, IPredicateDescription predicateDescription )
var mgr1 = new DomainModelEntityManager(); bool any = mgr1.Customers.Any(c=> c.Country == "UK");
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