private FillNextResult ( DataReaderContainer dataReader ) : bool | ||
dataReader | DataReaderContainer | |
Результат | bool |
private bool FillNextResult(DataReaderContainer dataReader)
{
bool result = true;
if (_hasFillErrorHandler)
{
try
{
// only try-catch if a FillErrorEventHandler is registered so that
// in the default case we get the full callstack from users
result = dataReader.NextResult();
}
catch (Exception e) when (ADP.IsCatchableExceptionType(e))
{
ADP.TraceExceptionForCapture(e);
OnFillErrorHandler(e, null, null);
}
}
else
{
result = dataReader.NextResult();
}
return result;
}