8 instantiations of DataTableMapping
System.Data.Common (8)
System\Data\Common\DataTableMapping.cs (1)
99DataTableMapping clone = new DataTableMapping();
System\Data\Common\DataTableMappingCollection.cs (2)
135Add(new DataTableMapping(sourceTable, dataSetTable)); 396return new DataTableMapping(sourceTable, dataSetTable);
System\Data\Common\DBCommandBuilder.cs (1)
1251tableMapping = new DataTableMapping(tableName, tableName);
System\Data\Common\DbDataAdapter.cs (2)
728tableMapping = new DataTableMapping(dataTable.TableName, dataTable.TableName); 909tableMapping = new DataTableMapping(DbDataAdapter.DefaultSourceTableName, dataTable.TableName);
System\Data\ProviderBase\SchemaMapping.cs (2)
114MissingMappingAction.Passthrough => new DataTableMapping(_dataTable.TableName, _dataTable.TableName), 139_tableMapping = new DataTableMapping(_dataTable.TableName, _dataTable.TableName);
77 references to DataTableMapping
netstandard (1)
netstandard.cs (1)
451[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DataTableMapping))]
System.Data (1)
parent\ref\System.Data.cs (1)
23[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DataTableMapping))]
System.Data.Common (67)
System\Data\Common\AdapterUtil.Common.cs (7)
400return CollectionNullValue(parameter, typeof(DataTableMappingCollection), typeof(DataTableMapping)); 404return CollectionIndexString(typeof(DataTableMapping), ADP.DataSetTable, cacheTable, typeof(DataTableMappingCollection)); 412return ParametersIsNotParent(typeof(DataTableMapping), collection); 416return ParametersIsParent(typeof(DataTableMapping), collection); 420return CollectionIndexString(typeof(DataTableMapping), ADP.SourceTable, srcTable, typeof(DataTableMappingCollection)); 424return CollectionUniqueValue(typeof(DataTableMapping), ADP.SourceTable, srcTable); 428return CollectionInvalidType(typeof(DataTableMappingCollection), typeof(DataTableMapping), value);
System\Data\Common\DataAdapter.cs (1)
725internal DataTableMapping? GetTableMappingBySchemaAction(string sourceTableName, string dataSetTableName, MissingMappingAction mappingAction)
System\Data\Common\DataTableMapping.cs (5)
99DataTableMapping clone = new DataTableMapping(); 188if ((typeof(InstanceDescriptor) == destinationType) && (value is DataTableMapping)) 190DataTableMapping mapping = (DataTableMapping)value; 197ConstructorInfo ctor = typeof(DataTableMapping).GetConstructor(types)!;
System\Data\Common\DataTableMappingCollection.cs (27)
17private List<DataTableMapping>? _items; // delay creation until AddWithoutEvents, Insert, CopyTo, GetEnumerator 34this[index] = (DataTableMapping)value; 44this[index] = (DataTableMapping)value; 59public DataTableMapping this[int index] 75public DataTableMapping this[string sourceTable] 92Add((DataTableMapping)value); 96private DataTableMapping Add(DataTableMapping value) 102public void AddRange(DataTableMapping[] values) => AddEnumerableRange(values, false); 122AddWithoutEvents(value.Clone() as DataTableMapping); 127foreach (DataTableMapping value in values) 134public DataTableMapping Add(string? sourceTable, string? dataSetTable) => 137private void AddWithoutEvents(DataTableMapping? value) 146private List<DataTableMapping> ArrayList() => _items ??= new List<DataTableMapping>(); 160foreach (DataTableMapping item in _items) 174public void CopyTo(DataTableMapping[] array, int index) => ArrayList().CopyTo(array, index); 176public DataTableMapping GetByDataSetTable(string dataSetTable) 239Insert(index, (DataTableMapping)value); 242public void Insert(int index, DataTableMapping value) 293Remove((DataTableMapping)value); 296public void Remove(DataTableMapping value) 310throw ADP.CollectionRemoveInvalidObject(typeof(DataTableMapping), this); 314private void Replace(int index, DataTableMapping newValue) 328else if (!typeof(DataTableMapping).IsInstanceOfType(value)) 334private void Validate(int index, [NotNull] DataTableMapping? value) 379public static DataTableMapping? GetTableMappingBySchemaAction(DataTableMappingCollection? tableMappings, string sourceTable, string dataSetTable, MissingMappingAction mappingAction)
System\Data\Common\DBCommandBuilder.cs (8)
793private DbCommand BuildDeleteCommand(DataTableMapping? mappings, DataRow? dataRow) 813private DbCommand BuildInsertCommand(DataTableMapping? mappings, DataRow? dataRow) 904private DbCommand? BuildUpdateCommand(DataTableMapping? mappings, DataRow? dataRow) 992DataTableMapping? mappings, 1235private DataTableMapping? GetTableMapping(DataRow? dataRow) 1237DataTableMapping? tableMapping = null; 1362private object? GetColumnValue(DataRow row, string columnName, DataTableMapping mappings, DataRowVersion version) 1378private DataColumn? GetDataColumn(string columnName, DataTableMapping tablemapping, DataRow row)
System\Data\Common\DbDataAdapter.cs (12)
257protected virtual RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping) 262protected virtual RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping) 714internal DataTableMapping GetTableMapping(DataTable dataTable) 716DataTableMapping? tableMapping = null; 749private void ParameterInput(IDataParameterCollection parameters, StatementType typeIndex, DataRow row, DataTableMapping mappings) 783private static void ParameterOutput(IDataParameter parameter, DataRow row, DataTableMapping mappings, MissingMappingAction missingMapping, MissingSchemaAction missingSchema) 819private void ParameterOutput(IDataParameterCollection parameters, DataRow row, DataTableMapping mappings) 874DataTableMapping tableMapping = GetTableMapping(dataTable); 897DataTableMapping? tableMapping = null; 936DataTableMapping? tableMapping = GetTableMappingBySchemaAction(srcTable, srcTable, UpdateMappingAction); 961protected virtual int Update(DataRow[] dataRows, DataTableMapping tableMapping) 1483private int UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
System\Data\Common\RowUpdatedEventArgs.cs (3)
14private readonly DataTableMapping _tableMapping; 23public RowUpdatedEventArgs(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping) 125public DataTableMapping TableMapping
System\Data\Common\RowUpdatingEventArgs.cs (3)
10private readonly DataTableMapping _tableMapping; 16public RowUpdatingEventArgs(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping) 79public DataTableMapping TableMapping => _tableMapping;
System\Data\ProviderBase\SchemaMapping.cs (1)
41private readonly DataTableMapping? _tableMapping;
System.Data.Odbc (4)
System\Data\Odbc\OdbcDataAdapter.cs (2)
143protected override RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping) 148protected override RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping)
System\Data\Odbc\OdbcRowUpdatingEvent.cs (2)
22public OdbcRowUpdatingEventArgs(DataRow row, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping) 49public OdbcRowUpdatedEventArgs(DataRow row, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping)
System.Data.OleDb (4)
OleDbDataAdapter.cs (2)
140protected override RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping) 145protected override RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping)
OleDbRowUpdatedEvent.cs (1)
10public OleDbRowUpdatedEventArgs(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping)
OleDbRowUpdatingEvent.cs (1)
10public OleDbRowUpdatingEventArgs(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping)