| Visual Basic (Declaration) | |
|---|---|
<ExtensionAttribute()> Public Overloads Shared Function Count( _ ByVal source As IQueryable, _ ByVal predicateDescription As IPredicateDescription _ ) As Integer | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim source As IQueryable Dim predicateDescription As IPredicateDescription Dim value As Integer value = QueryableExtensions.Count(source, predicateDescription) | |
| C# | |
|---|---|
[ExtensionAttribute()] public static int Count( IQueryable source, IPredicateDescription predicateDescription ) | |
| C++/CLI | |
|---|---|
[ExtensionAttribute()] public: static int Count( IQueryable^ source, IPredicateDescription^ predicateDescription ) | |
Parameters
- source
- predicateDescription
| C# | Copy Code |
|---|---|
var mgr1 = new DomainModelEntityManager(); var entityType = typeof(Customer); var baseQuery = EntityQuery.Create(entityType); var pd = new PredicateDescription(Customer.EntityPropertyNames.Country, FilterOperator.IsEqualTo, "UK"); var count = baseQuery.Count(pd); | |
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