TableOperationsTQueryRecordCountAsync(CancellationToken, IRecordFilter) Method

Gets the record count for the modeled table based on search parameter. Search executed against fields modeled with SearchableAttribute.

Definition

Namespace: Gemstone.Data.Model
Assembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.181 -- Release Build+8ede4e2e3eaa7e2f6590bec626fa21d2a2e0b470
public Task<int> QueryRecordCountAsync(
	CancellationToken cancellationToken,
	params IRecordFilter?[]? recordFilter
)

Parameters

cancellationToken  CancellationToken
Propagates notification that operations should be canceled.
recordFilter  IRecordFilter
IRecordFilter to be filtered by

Return Value

TaskInt32
Record count for the modeled table based on search parameter.

Implements

ITableOperationsQueryRecordCountAsync(CancellationToken, IRecordFilter)

Remarks

This is a convenience call to QueryRecordCount(RecordRestriction) where restriction is generated by GetSearchRestrictions(IRecordFilter)

See Also