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

◆ UpdateConcurrencyViolation()

static Exception System.Data.Common.ADP.UpdateConcurrencyViolation ( StatementType statementType,
int affected,
int expected,
DataRow[] dataRows )
inlinestaticpackage

Definition at line 435 of file ADP.cs.

436 {
437 DBConcurrencyException ex = new DBConcurrencyException(System.SR.Format(statementType switch
438 {
439 StatementType.Update => System.SR.ADP_UpdateConcurrencyViolation_Update,
440 StatementType.Delete => System.SR.ADP_UpdateConcurrencyViolation_Delete,
441 StatementType.Batch => System.SR.ADP_UpdateConcurrencyViolation_Batch,
442 _ => throw InvalidStatementType(statementType),
445 return ex;
446 }
static void TraceExceptionAsReturnValue(Exception e)
Definition ADP.cs:668
static CultureInfo InvariantCulture
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.SR.Format(), System.Globalization.CultureInfo.InvariantCulture, and System.Data.Common.ADP.TraceExceptionAsReturnValue().

Referenced by System.Data.Common.DbDataAdapter.UpdateBatchExecute(), and System.Data.Common.DbDataAdapter.UpdateRowExecute().