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

◆ BeginLoadData()

void System.Data.DataTable.BeginLoadData ( )
inlineinherited

Definition at line 4040 of file DataTable.cs.

4041 {
4042 long scopeId = DataCommonEventSource.Log.EnterScope("<ds.DataTable.BeginLoadData|API> {0}", ObjectID);
4043 try
4044 {
4045 if (_inDataLoad)
4046 {
4047 return;
4048 }
4049 _inDataLoad = true;
4050 _loadIndex = null;
4051 _initialLoad = Rows.Count == 0;
4052 if (_initialLoad)
4053 {
4055 }
4056 else
4057 {
4058 if (_primaryKey != null)
4059 {
4060 _loadIndex = _primaryKey.Key.GetSortIndex(DataViewRowState.OriginalRows);
4061 }
4062 if (_loadIndex != null)
4063 {
4065 }
4066 }
4067 if (DataSet != null)
4068 {
4071 }
4072 else
4073 {
4074 EnforceConstraints = false;
4075 }
4076 }
4077 finally
4078 {
4079 DataCommonEventSource.Log.ExitScope(scopeId);
4080 }
4081 }
UniqueConstraint _primaryKey
Definition DataTable.cs:124
void AddRef()
Definition Index.cs:196
Index GetSortIndex()
Definition DataKey.cs:184

References System.Data.DataTable._inDataLoad, System.Data.DataTable._initialLoad, System.Data.DataTable._loadIndex, System.Data.DataTable._primaryKey, System.Data.DataTable._savedEnforceConstraints, System.Data.Index.AddRef(), System.Runtime.Serialization.Dictionary, System.Data.DataSet.EnforceConstraints, System.Data.DataTable.EnforceConstraints, System.Data.DataKey.GetSortIndex(), System.Data.UniqueConstraint.Key, System.Data.DataCommonEventSource.Log, System.Data.DataTable.ObjectID, and System.Data.DataTable.SuspendIndexEvents().

Referenced by System.Data.Common.DataAdapter.FillFromReader().