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)


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

returnValue = Me.Count(query)
protected override int Count<T>(
    IQueryable<T> query
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.


Return Value

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

See Also


LinqToEntitiesDomainService<TContext> Class

Count Overload

System.ServiceModel.DomainServices.EntityFramework Namespace