IdeaBlade DevForce 2010 Help Reference
Any(ITypedEntityQuery) Method
See Also  Example Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class > Any Method : Any(ITypedEntityQuery) Method



source
Determines whether a sequence contains any elements.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Overloads Shared Function Any( _
   ByVal source As ITypedEntityQuery _
) As Boolean
Visual Basic (Usage)Copy Code
Dim source As ITypedEntityQuery
Dim value As Boolean
 
value = EntityQueryExtensions.Any(source)
C# 
[ExtensionAttribute()]
public static bool Any( 
   ITypedEntityQuery source
)
C++/CLI 
[ExtensionAttribute()]
public:
static bool Any( 
   ITypedEntityQuery^ source
) 

Parameters

source

Example

C#Copy Code
var mgr1 = new DomainModelEntityManager();
bool any = mgr1.Customers.Any();

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

© 2013 All Rights Reserved.