Definition at line 648 of file SchemaMapping.cs.
649 {
652 {
654 return null;
655 }
657 DataColumn[]
array =
null;
658 int num = 0;
667 object[] result = null;
670 try
671 {
673 {
679 {
681 }
683 {
685 }
686 if (
typeof(IDataReader).IsAssignableFrom(
type))
687 {
689 {
691 }
694 }
696 {
698 {
700 }
702 }
704 {
707 {
709 }
711 }
714 {
716 }
719 {
721 {
723 }
726 {
727 flag = false;
729 }
730 continue;
731 }
733 {
735 {
737 }
739 {
741 }
742 else
743 {
747 {
749 }
751 {
753 }
754 }
755 }
757 {
759 {
761 }
762 else
763 {
765 }
766 }
768 {
770 {
774 }
776 {
778 }
779 }
780 else
781 {
783 {
785 {
787 }
788 else
789 {
791 }
792 }
794 {
795 if (
dbSchemaRow.IsAutoIncrement && DataColumn.IsAutoIncrementType(
type))
796 {
799 {
801 }
802 }
804 {
806 }
808 {
810 }
812 {
814 }
816 {
819 {
821 }
822 }
823 }
825 {
831 {
833 }
834 }
835 }
837 {
839 {
841 }
844 }
846 {
848 {
850 }
853 {
855 }
856 }
858 {
860 }
862 {
865 }
867 }
871 {
875 {
877 {
883 }
885 }
886 }
888 {
890 {
893 }
894 if (flag &&
array !=
null)
895 {
896 if (num <
array.Length)
897 {
899 }
901 {
903 }
904 else
905 {
910 {
912 {
914 break;
915 }
916 }
918 {
920 }
921 }
922 }
924 {
926 }
928 {
932 }
933 else
934 {
936 }
937 }
938 else
939 {
941 }
943 {
945 }
946 }
948 {
950 throw;
951 }
952 return result;
953 }
bool ICollection< KeyValuePair< TKey, TValue > >. IsReadOnly
void Add(TKey key, TValue value)
static Exception FillChapterAutoIncrement()
static InvalidOperationException MissingDataReaderFieldType(int index)
static bool IsCatchableOrSecurityExceptionType(Exception e)
DataColumn? GetDataColumn(string sourceColumn, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicProperties)] Type? dataType, DataTable dataTable, MissingMappingAction mappingAction, MissingSchemaAction schemaAction)
static DbSchemaRow[] GetSortedSchemaRows(DataTable dataTable, bool returnProviderSpecificTypes)
DataTableCollection Tables
void Add(DataTable table)
ConstraintCollection Constraints
DataColumnCollection Columns
Type GetFieldType(int ordinal)
bool ReturnProviderSpecificTypes
object[] SetupMapping(int count, DataColumnCollection columnCollection, DataColumn chapterColumn, object chapterValue)
readonly DataReaderContainer _dataReader
void RollbackAddedItems(List< object > items)
readonly DataTable _schemaTable
void AddItemToAllowRollback(ref List< object > items, object value)
DataColumn[] ResizeColumnArray(DataColumn[] rgcol, int len)
readonly DataTableMapping _tableMapping
int[] CreateIndexMap(int count, int index)
readonly DataSet _dataSet
readonly LoadOption _loadOption
void AddAdditionalProperties(DataColumn targetColumn, DataRow schemaRow)
void AddRelation(DataColumn parentChapterColumn, DataColumn chapterColumn)
readonly string[] _fieldNames
References System.Data.ProviderBase.SchemaMapping._chapterMap, System.Data.ProviderBase.SchemaMapping._dataReader, System.Data.ProviderBase.SchemaMapping._dataSet, System.Data.ProviderBase.SchemaMapping._dataTable, System.Data.ProviderBase.SchemaMapping._fieldNames, System.Data.ProviderBase.SchemaMapping._indexMap, System.Data.ProviderBase.SchemaMapping._loadOption, System.Data.ProviderBase.SchemaMapping._mappedMode, System.Data.ProviderBase.SchemaMapping._schemaTable, System.Data.ProviderBase.SchemaMapping._tableMapping, System.Data.ProviderBase.SchemaMapping._xmlMap, System.Data.DataTableCollection.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Data.ProviderBase.SchemaMapping.AddAdditionalProperties(), System.Data.ProviderBase.SchemaMapping.AddItemToAllowRollback(), System.Data.ProviderBase.SchemaMapping.AddRelation(), System.array, System.Data.DataTable.Columns, System.Data.DataTable.Constraints, System.Data.DataRowCollection.Count, System.Data.InternalDataCollectionBase.Count, System.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Data.ProviderBase.SchemaMapping.CreateIndexMap(), System.Data.DataTable.DataSet, System.Xml.Dictionary, System.Data.Common.ADP.FillChapterAutoIncrement(), System.Data.Common.DataTableMapping.GetDataColumn(), System.Data.ProviderBase.DataReaderContainer.GetFieldType(), System.Data.Common.DbSchemaRow.GetSortedSchemaRows(), System.Data.DataColumn.IsAutoIncrementType(), System.Data.Common.ADP.IsCatchableOrSecurityExceptionType(), System.Collections.Generic.Dictionary< TKey, TValue >.IsReadOnly, System.Data.Common.ADP.MissingDataReaderFieldType(), System.Data.ProviderBase.SchemaMapping.ResizeColumnArray(), System.Data.ProviderBase.DataReaderContainer.ReturnProviderSpecificTypes, System.Data.ProviderBase.SchemaMapping.RollbackAddedItems(), System.Data.DataTable.Rows, System.Data.ProviderBase.SchemaMapping.SetupMapping(), System.Data.Common.DataTableMapping.SourceTable, System.Data.DataTable.TableName, System.Data.DataSet.Tables, System.text, and System.type.
Referenced by System.Data.ProviderBase.SchemaMapping.SchemaMapping().