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

◆ BeginEditInternal()

bool System.Data.DataRow.BeginEditInternal ( )
inlineprivate

Definition at line 500 of file DataRow.cs.

501 {
503 {
504 throw ExceptionBuilder.BeginEditInRowChanging();
505 }
506 if (_tempRecord != -1)
507 {
509 {
510 return false;
511 }
512 _tempRecord = -1;
513 }
514 if (_oldRecord != -1 && _newRecord == -1)
515 {
516 throw ExceptionBuilder.DeletedRowInaccessible();
517 }
520 return true;
521 }
void ResetLastChangedColumn()
Definition DataRow.cs:1058
readonly DataTable _table
Definition DataRow.cs:12
readonly RecordManager _recordManager
Definition DataTable.cs:74

References System.Data.DataRow._inChangingEvent, System.Data.DataRow._newRecord, System.Data.DataRow._oldRecord, System.Data.DataTable._recordManager, System.Data.DataRow._table, System.Data.DataRow._tempRecord, System.Data.ExceptionBuilder.BeginEditInRowChanging(), System.Data.ExceptionBuilder.DeletedRowInaccessible(), System.Data.RecordManager.LastFreeRecord, System.Data.DataTable.NewRecord(), and System.Data.DataRow.ResetLastChangedColumn().

Referenced by System.Data.DataRow.BeginEdit(), and System.Data.DataRow.SetKeyValues().