Click or drag to resize

MapperKernelGetRecordCountSafe Method

Returns the RecordCount (an int) for the mapper, but catches any error that is thrown. Use this exec command instead of RecordCount if you want to guarantee that no error is thrown.

Namespace:  NetQuarry.Data
Assembly:  EAP.Mapper (in EAP.Mapper.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
protected int GetRecordCountSafe(
	MapperErrorContext errorContext
)

Parameters

errorContext
Type: NetQuarry.DataMapperErrorContext
An optional MapperErrorContext that will be populated if provided. In particular ErrorMessage will be set if an error occurred attempting to obtain the count.

Return Value

Type: Int32
The record count, possibly -1 if the count could not be determined.
See Also