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

◆ ApplyToDataRow()

void System.Data.ProviderBase.SchemaMapping.ApplyToDataRow ( DataRow dataRow)
inlinepackage

Definition at line 148 of file SchemaMapping.cs.

149 {
150 DataColumnCollection columns = dataRow.Table.Columns;
152 object[] mappedValues = GetMappedValues();
153 bool[] array = new bool[mappedValues.Length];
154 for (int i = 0; i < array.Length; i++)
155 {
156 array[i] = columns[i].ReadOnly;
157 }
158 try
159 {
160 try
161 {
162 for (int j = 0; j < array.Length; j++)
163 {
164 if (columns[j].Expression.Length == 0)
165 {
166 columns[j].ReadOnly = false;
167 }
168 }
169 for (int k = 0; k < mappedValues.Length; k++)
170 {
171 object obj = mappedValues[k];
172 if (obj != null)
173 {
174 dataRow[k] = obj;
175 }
176 }
177 }
178 finally
179 {
180 for (int l = 0; l < array.Length; l++)
181 {
182 if (columns[l].Expression.Length == 0)
183 {
184 columns[l].ReadOnly = array[l];
185 }
186 }
187 }
188 }
189 finally
190 {
191 if (_chapterMap != null)
192 {
194 }
195 }
196 }
readonly DataReaderContainer _dataReader

References System.Data.ProviderBase.SchemaMapping._chapterMap, System.Data.ProviderBase.SchemaMapping._dataReader, System.Data.ProviderBase.SchemaMapping._readerDataValues, System.array, System.Xml.Dictionary, System.Data.ProviderBase.SchemaMapping.FreeDataRowChapters(), System.Data.ProviderBase.SchemaMapping.GetMappedValues(), System.Data.ProviderBase.DataReaderContainer.GetValues(), and System.obj.