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

◆ UpdatedRowStatusErrors()

int System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors ( RowUpdatedEventArgs rowUpdatedEvent,
BatchCommandInfo[] batchCommands,
int commandCount )
inlineprivate

Definition at line 1408 of file DbDataAdapter.cs.

1409 {
1410 Exception ex = rowUpdatedEvent.Errors;
1411 if (ex == null)
1412 {
1413 ex = (rowUpdatedEvent.Errors = ADP.RowUpdatedErrors());
1414 }
1415 int result = 0;
1416 bool flag = false;
1417 string message = ex.Message;
1418 for (int i = 0; i < commandCount; i++)
1419 {
1420 DataRow row = batchCommands[i]._row;
1421 Exception errors = batchCommands[i]._errors;
1422 if (errors != null)
1423 {
1424 string text = errors.Message;
1425 if (string.IsNullOrEmpty(text))
1426 {
1427 text = message;
1428 }
1429 row.RowError += text;
1430 flag = true;
1431 }
1432 }
1433 if (!flag)
1434 {
1435 for (int j = 0; j < commandCount; j++)
1436 {
1437 batchCommands[j]._row.RowError += message;
1438 }
1439 }
1440 else
1441 {
1443 }
1444 if (!base.ContinueUpdateOnError)
1445 {
1446 throw ex;
1447 }
1448 return result;
1449 }
int UpdatedRowStatusContinue(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, int commandCount)

References System.Exception.Message, System.Data.Common.ADP.RowUpdatedErrors(), System.text, and System.Data.Common.DbDataAdapter.UpdatedRowStatusContinue().

Referenced by System.Data.Common.DbDataAdapter.UpdatedRowStatus().