8 instantiations of DataTableMapping
System.Data.Common (8)
System\Data\Common\DataTableMapping.cs (1)
99
DataTableMapping clone = new
DataTableMapping
();
System\Data\Common\DataTableMappingCollection.cs (2)
137
Add(new
DataTableMapping
(sourceTable, dataSetTable));
398
return new
DataTableMapping
(sourceTable, dataSetTable);
System\Data\Common\DBCommandBuilder.cs (1)
1251
tableMapping = new
DataTableMapping
(tableName, tableName);
System\Data\Common\DbDataAdapter.cs (2)
728
tableMapping = new
DataTableMapping
(dataTable.TableName, dataTable.TableName);
909
tableMapping = new
DataTableMapping
(DbDataAdapter.DefaultSourceTableName, dataTable.TableName);
System\Data\ProviderBase\SchemaMapping.cs (2)
114
MissingMappingAction.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)
400
return CollectionNullValue(parameter, typeof(DataTableMappingCollection), typeof(
DataTableMapping
));
404
return CollectionIndexString(typeof(
DataTableMapping
), ADP.DataSetTable, cacheTable, typeof(DataTableMappingCollection));
412
return ParametersIsNotParent(typeof(
DataTableMapping
), collection);
416
return ParametersIsParent(typeof(
DataTableMapping
), collection);
420
return CollectionIndexString(typeof(
DataTableMapping
), ADP.SourceTable, srcTable, typeof(DataTableMappingCollection));
424
return CollectionUniqueValue(typeof(
DataTableMapping
), ADP.SourceTable, srcTable);
428
return CollectionInvalidType(typeof(DataTableMappingCollection), typeof(
DataTableMapping
), value);
System\Data\Common\DataAdapter.cs (1)
725
internal
DataTableMapping
? GetTableMappingBySchemaAction(string sourceTableName, string dataSetTableName, MissingMappingAction mappingAction)
System\Data\Common\DataTableMapping.cs (5)
99
DataTableMapping
clone = new DataTableMapping();
188
if ((typeof(InstanceDescriptor) == destinationType) && (value is
DataTableMapping
))
190
DataTableMapping
mapping = (
DataTableMapping
)value;
197
ConstructorInfo ctor = typeof(
DataTableMapping
).GetConstructor(types)!;
System\Data\Common\DataTableMappingCollection.cs (26)
17
private List<
DataTableMapping
>? _items; // delay creation until AddWithoutEvents, Insert, CopyTo, GetEnumerator
34
this[index] = (
DataTableMapping
)value;
44
this[index] = (
DataTableMapping
)value;
57
private static Type ItemType => typeof(
DataTableMapping
);
61
public
DataTableMapping
this[int index]
77
public
DataTableMapping
this[string sourceTable]
94
Add((
DataTableMapping
)value);
98
private
DataTableMapping
Add(
DataTableMapping
value)
104
public void AddRange(
DataTableMapping
[] values) => AddEnumerableRange(values, false);
124
AddWithoutEvents(value.Clone() as
DataTableMapping
);
129
foreach (
DataTableMapping
value in values)
136
public
DataTableMapping
Add(string? sourceTable, string? dataSetTable) =>
139
private void AddWithoutEvents(
DataTableMapping
? value)
148
private List<
DataTableMapping
> ArrayList() => _items ??= new List<
DataTableMapping
>();
162
foreach (
DataTableMapping
item in _items)
176
public void CopyTo(
DataTableMapping
[] array, int index) => ArrayList().CopyTo(array, index);
178
public
DataTableMapping
GetByDataSetTable(string dataSetTable)
241
Insert(index, (
DataTableMapping
)value);
244
public void Insert(int index,
DataTableMapping
value)
295
Remove((
DataTableMapping
)value);
298
public void Remove(
DataTableMapping
value)
316
private void Replace(int index,
DataTableMapping
newValue)
336
private void Validate(int index, [NotNull]
DataTableMapping
? value)
381
public static
DataTableMapping
? GetTableMappingBySchemaAction(DataTableMappingCollection? tableMappings, string sourceTable, string dataSetTable, MissingMappingAction mappingAction)
System\Data\Common\DBCommandBuilder.cs (8)
793
private DbCommand BuildDeleteCommand(
DataTableMapping
? mappings, DataRow? dataRow)
813
private DbCommand BuildInsertCommand(
DataTableMapping
? mappings, DataRow? dataRow)
904
private DbCommand? BuildUpdateCommand(
DataTableMapping
? mappings, DataRow? dataRow)
992
DataTableMapping
? mappings,
1235
private
DataTableMapping
? GetTableMapping(DataRow? dataRow)
1237
DataTableMapping
? tableMapping = null;
1362
private object? GetColumnValue(DataRow row, string columnName,
DataTableMapping
mappings, DataRowVersion version)
1378
private DataColumn? GetDataColumn(string columnName,
DataTableMapping
tablemapping, DataRow row)
System\Data\Common\DbDataAdapter.cs (12)
257
protected virtual RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand? command, StatementType statementType,
DataTableMapping
tableMapping)
262
protected virtual RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand? command, StatementType statementType,
DataTableMapping
tableMapping)
714
internal
DataTableMapping
GetTableMapping(DataTable dataTable)
716
DataTableMapping
? tableMapping = null;
749
private void ParameterInput(IDataParameterCollection parameters, StatementType typeIndex, DataRow row,
DataTableMapping
mappings)
783
private static void ParameterOutput(IDataParameter parameter, DataRow row,
DataTableMapping
mappings, MissingMappingAction missingMapping, MissingSchemaAction missingSchema)
819
private void ParameterOutput(IDataParameterCollection parameters, DataRow row,
DataTableMapping
mappings)
874
DataTableMapping
tableMapping = GetTableMapping(dataTable);
897
DataTableMapping
? tableMapping = null;
936
DataTableMapping
? tableMapping = GetTableMappingBySchemaAction(srcTable, srcTable, UpdateMappingAction);
961
protected virtual int Update(DataRow[] dataRows,
DataTableMapping
tableMapping)
1483
private int UpdateFromDataTable(DataTable dataTable,
DataTableMapping
tableMapping)
System\Data\Common\RowUpdatedEventArgs.cs (3)
14
private readonly
DataTableMapping
_tableMapping;
23
public RowUpdatedEventArgs(DataRow dataRow, IDbCommand? command, StatementType statementType,
DataTableMapping
tableMapping)
125
public
DataTableMapping
TableMapping
System\Data\Common\RowUpdatingEventArgs.cs (3)
10
private readonly
DataTableMapping
_tableMapping;
16
public RowUpdatingEventArgs(DataRow dataRow, IDbCommand? command, StatementType statementType,
DataTableMapping
tableMapping)
79
public
DataTableMapping
TableMapping => _tableMapping;
System\Data\ProviderBase\SchemaMapping.cs (1)
41
private readonly
DataTableMapping
? _tableMapping;
System.Data.Odbc (4)
System\Data\Odbc\OdbcDataAdapter.cs (2)
143
protected override RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand? command, StatementType statementType,
DataTableMapping
tableMapping)
148
protected override RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand? command, StatementType statementType,
DataTableMapping
tableMapping)
System\Data\Odbc\OdbcRowUpdatingEvent.cs (2)
22
public OdbcRowUpdatingEventArgs(DataRow row, IDbCommand? command, StatementType statementType,
DataTableMapping
tableMapping)
49
public 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)
178
protected 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); }
179
protected 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); }
428
public 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); }
434
public 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); }