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)
103
else if (null !=
_dataTable
)
105
int index = _adapter.IndexOfDataSetTable(
_dataTable
.TableName);
114
MissingMappingAction.Passthrough => new DataTableMapping(
_dataTable
.TableName,
_dataTable
.TableName),
116
MissingMappingAction.Error => throw ADP.MissingTableMappingDestination(
_dataTable
.TableName),
130
else if (null !=
_dataTable
)
132
int index = _adapter.IndexOfDataSetTable(
_dataTable
.TableName);
139
_tableMapping = new DataTableMapping(
_dataTable
.TableName,
_dataTable
.TableName);
150
if (null ==
_dataTable
)
154
if (null !=
_dataTable
)
183
return
_dataTable
;
411
dataRow =
_dataTable
!.LoadDataRow(mapped, _loadOption);
414
dataRow =
_dataTable
!.LoadDataRow(mapped, true);
417
dataRow =
_dataTable
!.LoadDataRow(mapped, false);
478
parentChapterColumn =
_dataTable
!.Columns[i];
483
parentChapterColumn =
_dataTable
!.Columns[_indexMap[i]];
566
Debug.Assert(
_dataTable
!= null);
580
DataColumnCollection columnCollection =
_dataTable
.Columns;
583
bool alwaysCreateColumns = ((
_dataTable
.Columns.Count == 0) && ((_tableMapping.ColumnMappings == null) || (_tableMapping.ColumnMappings.Count == 0)) && (mappingAction == MissingMappingAction.Passthrough));
626
dataColumn = DataColumnMapping.CreateDataColumnBySchemaAction(_fieldNames[i], _fieldNames[i],
_dataTable
, fieldType, schemaAction);
630
dataColumn = _tableMapping.GetDataColumn(_fieldNames[i], fieldType,
_dataTable
, mappingAction, schemaAction);
704
chapterColumn = _tableMapping.GetDataColumn(_tableMapping.SourceTable, fieldType,
_dataTable
, mappingAction, schemaAction);
719
if ((null != _dataSet) && (null ==
_dataTable
.DataSet))
722
AddItemToAllowRollback(ref addedItems,
_dataTable
);
723
_dataSet.Tables.Add(
_dataTable
);
729
columnCollection =
_dataTable
.Columns;
762
Debug.Assert(
_dataTable
!= null);
780
bool addPrimaryKeys = (((0 ==
_dataTable
.PrimaryKey.Length) && ((4 <= (int)_loadOption) || (0 ==
_dataTable
.Rows.Count)))
781
|| (0 ==
_dataTable
.Columns.Count));
800
DataColumnCollection columnCollection =
_dataTable
.Columns;
851
dataColumn = _tableMapping.GetDataColumn(_fieldNames[sortedIndex], fieldType,
_dataTable
, mappingAction, schemaAction);
1050
chapterColumn = _tableMapping.GetDataColumn(_tableMapping.SourceTable, fieldType,
_dataTable
, mappingAction, schemaAction);
1068
if ((null != _dataSet) && null ==
_dataTable
.DataSet)
1070
AddItemToAllowRollback(ref addedItems,
_dataTable
);
1071
_dataSet.Tables.Add(
_dataTable
);
1083
_dataTable
.PrimaryKey = keys;
1088
ConstraintCollection constraints =
_dataTable
.Constraints;
1104
if (!commonFromMultiTable && !string.IsNullOrEmpty(commonBaseTable) && string.IsNullOrEmpty(
_dataTable
.TableName))
1106
_dataTable
.TableName = commonBaseTable;