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

◆ UpdateRequiresCommand()

static InvalidOperationException System.Data.Common.ADP.UpdateRequiresCommand ( StatementType statementType,
bool isRowUpdatingCommand )
inlinestaticpackage

Definition at line 448 of file ADP.cs.

449 {
450 string error = (isRowUpdatingCommand ? System.SR.ADP_UpdateRequiresCommandClone : (statementType switch
451 {
452 StatementType.Select => System.SR.ADP_UpdateRequiresCommandSelect,
453 StatementType.Insert => System.SR.ADP_UpdateRequiresCommandInsert,
454 StatementType.Update => System.SR.ADP_UpdateRequiresCommandUpdate,
455 StatementType.Delete => System.SR.ADP_UpdateRequiresCommandDelete,
457 }));
458 return InvalidOperation(error);
459 }
static ArgumentOutOfRangeException InvalidStatementType(StatementType value)
Definition ADP.cs:149
static InvalidOperationException InvalidOperation(string error)
Definition ADP.cs:746
static string ADP_UpdateRequiresCommandInsert
Definition SR.cs:792
static string ADP_UpdateRequiresCommandDelete
Definition SR.cs:796
static string ADP_UpdateRequiresCommandSelect
Definition SR.cs:790
static string ADP_UpdateRequiresCommandUpdate
Definition SR.cs:794
Definition SR.cs:7

References System.SR.ADP_UpdateRequiresCommandDelete, System.SR.ADP_UpdateRequiresCommandInsert, System.SR.ADP_UpdateRequiresCommandSelect, System.SR.ADP_UpdateRequiresCommandUpdate, System.Data.Common.ADP.InvalidOperation(), and System.Data.Common.ADP.InvalidStatementType().

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