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

◆ SetupMapping()

object[] System.Data.ProviderBase.SchemaMapping.SetupMapping ( int count,
DataColumnCollection columnCollection,
DataColumn chapterColumn,
object chapterValue )
inlineprivate

Definition at line 1030 of file SchemaMapping.cs.

1031 {
1032 object[] result = new object[count];
1033 if (_indexMap == null)
1034 {
1036 bool flag = _chapterMap != null;
1037 if (count != count2 || flag)
1038 {
1039 _mappedDataValues = new object[count2];
1040 if (flag)
1041 {
1042 _mappedMode = 3;
1044 }
1045 else
1046 {
1047 _mappedMode = 1;
1048 _mappedLength = Math.Min(count, count2);
1049 }
1050 }
1051 else
1052 {
1053 _mappedMode = 0;
1054 }
1055 }
1056 else
1057 {
1059 _mappedMode = ((_chapterMap == null) ? 2 : 4);
1061 }
1062 if (chapterColumn != null)
1063 {
1065 }
1066 return result;
1067 }

References System.Data.ProviderBase.SchemaMapping._chapterMap, System.Data.ProviderBase.SchemaMapping._indexMap, System.Data.ProviderBase.SchemaMapping._mappedDataValues, System.Data.ProviderBase.SchemaMapping._mappedLength, System.Data.ProviderBase.SchemaMapping._mappedMode, System.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, and System.Math.Min().

Referenced by System.Data.ProviderBase.SchemaMapping.SetupSchemaWithKeyInfo(), and System.Data.ProviderBase.SchemaMapping.SetupSchemaWithoutKeyInfo().