Click or drag to resize

IUserSessionCountT Method


Note: This API is now obsolete.

Gets the count of query results

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
[ObsoleteAttribute("Use RavenQueryable.TotalCount, wrapper not needed amymore")]
int Count<T>(
	IEnumerable<T> queryResults
)

Parameters

queryResults  IEnumerableT
Collection of query results

Type Parameters

T
Entity type in the query results

Return Value

Int32
Count of results.
Remarks
This wrapper only works if queryResults is an instance of IRavenQueryable, which already has queryResults.TotalCount. The preferred method is to simply use the TotalCount property of the IRavenQueryable instead of this deprecated wrapper.
See Also