Gets the number of entities that satify the given query if the response should include a count query option, or null otherwise.
Namespace:   System.Web.OData.Query
Assembly:  System.Web.OData (in System.Web.OData.dll)
Syntax
public Nullable<long> GetEntityCount(
    IQueryable query
)
public:
Nullable<long long> GetEntityCount(
    IQueryable^ query
)
member GetEntityCount : 
        query:IQueryable -> Nullable<int64>
Public Function GetEntityCount (
    query As IQueryable
) As Nullable(Of Long)
Parameters
- query 
 Type: System.Linq.IQueryable- The query to compute the count for. 
Return Value
Type: System.Nullable<Int64>
The number of entities that satisfy the specified query if the response should include a count query option, or null otherwise.
See Also
CountQueryOption Class
System.Web.OData.Query Namespace
Return to top