Share via


CountQueryOption.GetEntityCount(IQueryable) Method

Definition

Gets the number of entities that satisfy the given query if the response should include a count query option, or null otherwise.

public long? GetEntityCount (System.Linq.IQueryable query);
member this.GetEntityCount : System.Linq.IQueryable -> Nullable<int64>
Public Function GetEntityCount (query As IQueryable) As Nullable(Of Long)

Parameters

query
IQueryable

The query to compute the count for.

Returns

The number of entities that satisfy the specified query if the response should include a count query option, or null otherwise.

Applies to