DomainClientResult.TotalEntityCount Property

WCF RIA Services

[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.]

Gets the total server entity count for the original query without any paging applied to it.

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

public int TotalEntityCount { get; }

Property Value

Type: System.Int32
The total row count for the query, or -1 if total entity counts are not supported on the server.

The IncludeTotalCount property of the EntityQuery object must be true to support automatic evaluation of the total server entity count.