5 writes to _dataTable
System.Data.Common (5)
System\Data\ProviderBase\SchemaMapping.cs (5)
71_dataTable = datatable; // setting only DataTable, not DataSet implies chapters are not supported 152_dataTable = _tableMapping.GetDataTableBySchemaAction(_dataSet!, schemaAction); 743_dataTable = null; 774_dataTable = null; 1122_dataTable = null;
41 references to _dataTable
System.Data.Common (41)
System\Data\ProviderBase\SchemaMapping.cs (41)
103else if (null != _dataTable) 105int index = _adapter.IndexOfDataSetTable(_dataTable.TableName); 114MissingMappingAction.Passthrough => new DataTableMapping(_dataTable.TableName, _dataTable.TableName), 116MissingMappingAction.Error => throw ADP.MissingTableMappingDestination(_dataTable.TableName), 130else if (null != _dataTable) 132int index = _adapter.IndexOfDataSetTable(_dataTable.TableName); 139_tableMapping = new DataTableMapping(_dataTable.TableName, _dataTable.TableName); 150if (null == _dataTable) 154if (null != _dataTable) 183return _dataTable; 411dataRow = _dataTable!.LoadDataRow(mapped, _loadOption); 414dataRow = _dataTable!.LoadDataRow(mapped, true); 417dataRow = _dataTable!.LoadDataRow(mapped, false); 478parentChapterColumn = _dataTable!.Columns[i]; 483parentChapterColumn = _dataTable!.Columns[_indexMap[i]]; 566Debug.Assert(_dataTable != null); 580DataColumnCollection columnCollection = _dataTable.Columns; 583bool alwaysCreateColumns = ((_dataTable.Columns.Count == 0) && ((_tableMapping.ColumnMappings == null) || (_tableMapping.ColumnMappings.Count == 0)) && (mappingAction == MissingMappingAction.Passthrough)); 626dataColumn = DataColumnMapping.CreateDataColumnBySchemaAction(_fieldNames[i], _fieldNames[i], _dataTable, fieldType, schemaAction); 630dataColumn = _tableMapping.GetDataColumn(_fieldNames[i], fieldType, _dataTable, mappingAction, schemaAction); 704chapterColumn = _tableMapping.GetDataColumn(_tableMapping.SourceTable, fieldType, _dataTable, mappingAction, schemaAction); 719if ((null != _dataSet) && (null == _dataTable.DataSet)) 722AddItemToAllowRollback(ref addedItems, _dataTable); 723_dataSet.Tables.Add(_dataTable); 729columnCollection = _dataTable.Columns; 762Debug.Assert(_dataTable != null); 780bool addPrimaryKeys = (((0 == _dataTable.PrimaryKey.Length) && ((4 <= (int)_loadOption) || (0 == _dataTable.Rows.Count))) 781|| (0 == _dataTable.Columns.Count)); 800DataColumnCollection columnCollection = _dataTable.Columns; 851dataColumn = _tableMapping.GetDataColumn(_fieldNames[sortedIndex], fieldType, _dataTable, mappingAction, schemaAction); 1050chapterColumn = _tableMapping.GetDataColumn(_tableMapping.SourceTable, fieldType, _dataTable, mappingAction, schemaAction); 1068if ((null != _dataSet) && null == _dataTable.DataSet) 1070AddItemToAllowRollback(ref addedItems, _dataTable); 1071_dataSet.Tables.Add(_dataTable); 1083_dataTable.PrimaryKey = keys; 1088ConstraintCollection constraints = _dataTable.Constraints; 1104if (!commonFromMultiTable && !string.IsNullOrEmpty(commonBaseTable) && string.IsNullOrEmpty(_dataTable.TableName)) 1106_dataTable.TableName = commonBaseTable;