Share via


CountQueryOption.GetEntityCount Method (IQueryable)

 

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

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