LinqToEntitiesDomainService<TContext>.Count<T> Method (IQueryable<T>)

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Returns the number of rows in the specified IQueryable object.

Namespace:  System.ServiceModel.DomainServices.EntityFramework
Assembly:  System.ServiceModel.DomainServices.EntityFramework (in System.ServiceModel.DomainServices.EntityFramework.dll)

Syntax

'Declaration
Protected Overrides Function Count(Of T) ( _
    query As IQueryable(Of T) _
) As Integer
'Usage
Dim query As IQueryable(Of T)
Dim returnValue As Integer

returnValue = Me.Count(query)
protected override int Count<T>(
    IQueryable<T> query
)
protected:
generic<typename T>
virtual int Count(
    IQueryable<T>^ query
) override
abstract Count : 
        query:IQueryable<'T> -> int 
override Count : 
        query:IQueryable<'T> -> int 
JScript does not support generic types and methods.

Type Parameters

  • T
    The element type of the query.

Parameters

Return Value

Type: System.Int32
The total number of rows in the specified IQueryable object.

See Also

Reference

LinqToEntitiesDomainService<TContext> Class

Count Overload

System.ServiceModel.DomainServices.EntityFramework Namespace