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

◆ GetMappedValues()

object[] System.Data.ProviderBase.SchemaMapping.GetMappedValues ( )
inlineprivate

Definition at line 250 of file SchemaMapping.cs.

251 {
252 if (_xmlMap != null)
253 {
254 for (int i = 0; i < _xmlMap.Length; i++)
255 {
256 if (_xmlMap[i] == 0)
257 {
258 continue;
259 }
260 string text = _readerDataValues[i] as string;
261 if (text == null && _readerDataValues[i] is SqlString sqlString)
262 {
263 if (!sqlString.IsNull)
264 {
265 text = sqlString.Value;
266 }
267 else
268 {
270 int num = i;
271 int num2 = _xmlMap[i];
272 object obj = ((num2 != 1) ? ((object)DBNull.Value) : ((object)SqlXml.Null));
273 readerDataValues[num] = obj;
274 }
275 }
276 if (text != null)
277 {
278 switch (_xmlMap[i])
279 {
280 case 1:
281 {
286 break;
287 }
288 case 2:
289 {
291 xmlDocument.LoadXml(text);
293 break;
294 }
295 }
296 }
297 }
298 }
299 switch (_mappedMode)
300 {
301 default:
302 return _readerDataValues;
303 case 1:
304 MappedValues();
305 break;
306 case 2:
307 MappedIndex();
308 break;
309 case 3:
311 break;
312 case 4:
314 break;
315 }
316 return _mappedDataValues;
317 }
static XmlReader Create(string inputUri)

References System.Data.ProviderBase.SchemaMapping._mappedDataValues, System.Data.ProviderBase.SchemaMapping._mappedMode, System.Data.ProviderBase.SchemaMapping._readerDataValues, System.Data.ProviderBase.SchemaMapping._xmlMap, System.Xml.XmlReader.Create(), System.Xml.Dictionary, System.Data.ProviderBase.SchemaMapping.MappedChapter(), System.Data.ProviderBase.SchemaMapping.MappedChapterIndex(), System.Data.ProviderBase.SchemaMapping.MappedIndex(), System.Data.ProviderBase.SchemaMapping.MappedValues(), System.Data.SqlTypes.SqlXml.Null, System.obj, System.text, System.DBNull.Value, and System.value.

Referenced by System.Data.ProviderBase.SchemaMapping.ApplyToDataRow(), and System.Data.ProviderBase.SchemaMapping.LoadDataRow().