Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FillLoadDataRow()

int System.Data.Common.DataAdapter.FillLoadDataRow ( SchemaMapping mapping)
inlineprivateinherited

Definition at line 597 of file DataAdapter.cs.

598 {
599 int num = 0;
600 DataReaderContainer dataReader = mapping.DataReader;
602 {
603 while (dataReader.Read())
604 {
605 try
606 {
607 mapping.LoadDataRowWithClear();
608 num++;
609 }
610 catch (Exception e) when (ADP.IsCatchableExceptionType(e))
611 {
612 ADP.TraceExceptionForCapture(e);
613 OnFillErrorHandler(e, mapping.DataTable, mapping.DataValues);
614 }
615 }
616 }
617 else
618 {
619 while (dataReader.Read())
620 {
621 mapping.LoadDataRow();
622 num++;
623 }
624 }
625 return num;
626 }
void OnFillErrorHandler(Exception e, DataTable dataTable, object[] dataValues)

References System.Data.Common.DataAdapter._hasFillErrorHandler, System.Data.ProviderBase.SchemaMapping.DataReader, System.Data.ProviderBase.SchemaMapping.DataTable, System.Data.ProviderBase.SchemaMapping.DataValues, System.Data.Common.ADP.IsCatchableExceptionType(), System.Data.ProviderBase.SchemaMapping.LoadDataRow(), System.Data.ProviderBase.SchemaMapping.LoadDataRowWithClear(), System.Data.Common.DataAdapter.OnFillErrorHandler(), System.Data.ProviderBase.DataReaderContainer.Read(), and System.Data.Common.ADP.TraceExceptionForCapture().

Referenced by System.Data.Common.DataAdapter.FillFromReader(), and System.Data.Common.DataAdapter.FillLoadDataRowChunk().