8 instantiations of DataTableMapping
System.Data.Common (8)
System\Data\Common\DataTableMapping.cs (1)
99DataTableMapping clone = new DataTableMapping();
System\Data\Common\DataTableMappingCollection.cs (2)
137Add(new DataTableMapping(sourceTable, dataSetTable)); 398return 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);
78 references to DataTableMapping
netstandard (1)
netstandard.cs (1)
451[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DataTableMapping))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
23[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DataTableMapping))]
System.Data.Common (66)
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 (26)
17private List<DataTableMapping>? _items; // delay creation until AddWithoutEvents, Insert, CopyTo, GetEnumerator 34this[index] = (DataTableMapping)value; 44this[index] = (DataTableMapping)value; 57private static Type ItemType => typeof(DataTableMapping); 61public DataTableMapping this[int index] 77public DataTableMapping this[string sourceTable] 94Add((DataTableMapping)value); 98private DataTableMapping Add(DataTableMapping value) 104public void AddRange(DataTableMapping[] values) => AddEnumerableRange(values, false); 124AddWithoutEvents(value.Clone() as DataTableMapping); 129foreach (DataTableMapping value in values) 136public DataTableMapping Add(string? sourceTable, string? dataSetTable) => 139private void AddWithoutEvents(DataTableMapping? value) 148private List<DataTableMapping> ArrayList() => _items ??= new List<DataTableMapping>(); 162foreach (DataTableMapping item in _items) 176public void CopyTo(DataTableMapping[] array, int index) => ArrayList().CopyTo(array, index); 178public DataTableMapping GetByDataSetTable(string dataSetTable) 241Insert(index, (DataTableMapping)value); 244public void Insert(int index, DataTableMapping value) 295Remove((DataTableMapping)value); 298public void Remove(DataTableMapping value) 316private void Replace(int index, DataTableMapping newValue) 336private void Validate(int index, [NotNull] DataTableMapping? value) 381public 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 (6)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (6)
178protected override System.Data.Common.RowUpdatedEventArgs CreateRowUpdatedEvent(System.Data.DataRow dataRow, System.Data.IDbCommand? command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 179protected override System.Data.Common.RowUpdatingEventArgs CreateRowUpdatingEvent(System.Data.DataRow dataRow, System.Data.IDbCommand? command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 428public OleDbRowUpdatedEventArgs(System.Data.DataRow dataRow, System.Data.IDbCommand? command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping) : base (default(System.Data.DataRow), default(System.Data.IDbCommand), default(System.Data.StatementType), default(System.Data.Common.DataTableMapping)) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 434public OleDbRowUpdatingEventArgs(System.Data.DataRow dataRow, System.Data.IDbCommand? command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping) : base (default(System.Data.DataRow), default(System.Data.IDbCommand), default(System.Data.StatementType), default(System.Data.Common.DataTableMapping)) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); }