5 writes to _dataTable
System.Data (5)
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (5)
73
_dataTable
= datatable; // setting only DataTable, not DataSet implies chapters are not supported
142
_dataTable
= _tableMapping.GetDataTableBySchemaAction(_dataSet, schemaAction);
622
_dataTable
= null;
647
_dataTable
= null;
964
_dataTable
= null;
39 references to _dataTable
System.Data (39)
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (39)
99
else if (null !=
_dataTable
) {
100
int index = _adapter.IndexOfDataSetTable(
_dataTable
.TableName);
107
_tableMapping = new DataTableMapping(
_dataTable
.TableName,
_dataTable
.TableName);
113
throw ADP.MissingTableMappingDestination(
_dataTable
.TableName);
126
else if (null !=
_dataTable
) {
127
int index = _adapter.IndexOfDataSetTable(
_dataTable
.TableName); // MDAC 66034
132
_tableMapping = new DataTableMapping(
_dataTable
.TableName,
_dataTable
.TableName);
141
if (null ==
_dataTable
) {
144
if (null !=
_dataTable
) {
166
return
_dataTable
;
350
dataRow =
_dataTable
.LoadDataRow(mapped, _loadOption);
353
dataRow =
_dataTable
.LoadDataRow(mapped, true);
356
dataRow =
_dataTable
.LoadDataRow(mapped, false);
402
parentChapterColumn =
_dataTable
.Columns[i];
406
parentChapterColumn =
_dataTable
.Columns[_indexMap[i]];
489
DataColumnCollection columnCollection =
_dataTable
.Columns;
492
bool alwaysCreateColumns = ((
_dataTable
.Columns.Count == 0) && ((_tableMapping.ColumnMappings == null) || (_tableMapping.ColumnMappings.Count == 0)) && (mappingAction == MissingMappingAction.Passthrough));
527
dataColumn = DataColumnMapping.CreateDataColumnBySchemaAction(_fieldNames[i], _fieldNames[i],
_dataTable
, fieldType, schemaAction);
530
dataColumn = _tableMapping.GetDataColumn(_fieldNames[i], fieldType,
_dataTable
, mappingAction, schemaAction);
590
chapterColumn = _tableMapping.GetDataColumn(_tableMapping.SourceTable, fieldType,
_dataTable
, mappingAction, schemaAction);
603
if ((null != _dataSet) && (null ==
_dataTable
.DataSet)) {
605
AddItemToAllowRollback(ref addedItems,
_dataTable
);
606
_dataSet.Tables.Add(
_dataTable
);
610
columnCollection =
_dataTable
.Columns;
653
bool addPrimaryKeys = (((0 ==
_dataTable
.PrimaryKey.Length) && ((4 <= (int)_loadOption) || (0 ==
_dataTable
.Rows.Count)))
654
|| (0 ==
_dataTable
.Columns.Count)); // MDAC 67033
673
DataColumnCollection columnCollection =
_dataTable
.Columns;
713
dataColumn = _tableMapping.GetDataColumn(_fieldNames[sortedIndex], fieldType,
_dataTable
, mappingAction, schemaAction);
889
chapterColumn = _tableMapping.GetDataColumn(_tableMapping.SourceTable, fieldType,
_dataTable
, mappingAction, schemaAction);
906
if ((null != _dataSet) && null ==
_dataTable
.DataSet) {
907
AddItemToAllowRollback(ref addedItems,
_dataTable
);
908
_dataSet.Tables.Add(
_dataTable
);
923
_dataTable
.PrimaryKey = keys;
927
ConstraintCollection constraints =
_dataTable
.Constraints;
950
if (!commonFromMultiTable && !ADP.IsEmpty(commonBaseTable) && ADP.IsEmpty(
_dataTable
.TableName)) {
951
_dataTable
.TableName = commonBaseTable;