4 writes to TableName
System.Data.Common (4)
System\Data\DataTable.cs (1)
6566
TableName
= currentTable.TableName;
System\Data\DataTableCollection.cs (1)
294
table.
TableName
= AssignName();
System\Data\DataView.cs (1)
1689
dt.
TableName
= tableName ?? _table.TableName;
System\Data\ProviderBase\SchemaMapping.cs (1)
1106
_dataTable.
TableName
= commonBaseTable;
197 references to TableName
System.Data.Common (195)
System\Data\Common\DataColumnMapping.cs (1)
133
throw ADP.ColumnSchemaMissing(dataSetColumn, dataTable.
TableName
, sourceColumn);
System\Data\Common\DBCommandBuilder.cs (1)
1250
string tableName = dataTable.
TableName
;
System\Data\Common\DbDataAdapter.cs (8)
392
string srcTableName = dataTable.
TableName
;
717
int index = IndexOfDataSetTable(dataTable.
TableName
);
726
throw ADP.MissingTableMappingDestination(dataTable.
TableName
);
728
tableMapping = new DataTableMapping(dataTable.
TableName
, dataTable.
TableName
);
898
int index = IndexOfDataSetTable(dataTable.
TableName
);
907
throw ADP.MissingTableMappingDestination(dataTable.
TableName
);
909
tableMapping = new DataTableMapping(DbDataAdapter.DefaultSourceTableName, dataTable.
TableName
);
System\Data\ConstraintCollection.cs (1)
101
throw ExceptionBuilder.CantAddConstraintToMultipleNestedTable(_table.
TableName
);
System\Data\ConstraintConverter.cs (1)
54
return new InstanceDescriptor(ctor, new object[] { constr.ConstraintName, constr.ParentKey.Table.
TableName
, constr.ParentColumnNames,
System\Data\DataColumnCollection.cs (3)
517
throw ExceptionBuilder.CannotRemoveConstraint(_table.Constraints[i].ConstraintName, _table.Constraints[i].Table!.
TableName
);
529
throw ExceptionBuilder.CannotRemoveConstraint(constraint.ConstraintName, constraint.Table!.
TableName
);
903
throw ExceptionBuilder.ColumnNotInTheTable(name, _table.
TableName
);
System\Data\DataException.cs (4)
464
public static Exception ConstraintAddFailed(DataTable table) => _InvalidConstraint(SR.Format(SR.DataConstraint_AddFailed, table.
TableName
));
630
public static Exception RemovePrimaryKey(DataTable table) => table.
TableName
.Length == 0 ?
632
_Argument(SR.Format(SR.DataKey_RemovePrimaryKey1, table.
TableName
));
669
public static Exception TableInConstraint(DataTable table, Constraint constraint) => _Argument(SR.Format(SR.DataTable_InConstraint, table.
TableName
, constraint.ConstraintName));
System\Data\DataRelation.cs (17)
405
throw ExceptionBuilder.InValidNestedRelation(ChildTable.
TableName
);
423
if (string.Compare(ChildTable.
TableName
, ChildTable.DataSet!.DataSetName, true, ChildTable.DataSet.Locale) == 0)
424
throw ExceptionBuilder.SelfnestedDatasetConflictingName(ChildTable.
TableName
);
439
throw ExceptionBuilder.LoopInNestedRelations(ChildTable.
TableName
);
498
ParentTable.Columns.RegisterColumnName(ChildTable.
TableName
, null);
502
ParentTable.Columns.UnregisterName(ChildTable.
TableName
);
517
if (ChildTable.DataSet != null && (string.Compare(ChildTable.
TableName
, ChildTable.DataSet.DataSetName, true, ChildTable.DataSet.Locale) == 0))
559
throw ExceptionBuilder.InvalidParentNamespaceinNestedRelation(ChildTable.
TableName
);
567
throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.
TableName
);
718
DataTable parent = destination.Tables[ParentTable.
TableName
, ParentTable.Namespace]!;
719
DataTable child = destination.Tables[ChildTable.
TableName
, ChildTable.Namespace]!;
783
throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.
TableName
);
788
throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.
TableName
);
797
throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.
TableName
);
805
throw ExceptionBuilder.TableCantBeNestedInTwoTables(ChildTable.
TableName
);
824
string generatedname = col.Table!.
TableName
+ "_Id";
831
generatedname = ParentColumnsReference[0].Table!.
TableName
+ "_Id";
System\Data\DataRelationCollection.cs (1)
501
relation.ParentTable.Columns.UnregisterName(relation.ChildTable.
TableName
);
System\Data\DataRow.cs (17)
218
throw ExceptionBuilder.NestedCircular(_table.
TableName
);
311
throw ExceptionBuilder.ColumnNotInTheTable(column.ColumnName, _table.
TableName
);
477
throw ExceptionBuilder.ColumnNotInTheTable(column.ColumnName, _table.
TableName
);
639
throw ExceptionBuilder.ColumnNotInTheTable(column.ColumnName, _table.
TableName
);
830
throw ExceptionBuilder.RelationForeignTable(relation.ParentTable.
TableName
, _table.
TableName
);
842
throw ExceptionBuilder.ColumnNotInTheTable(columnName, _table.
TableName
);
875
throw ExceptionBuilder.GetParentRowTableMismatch(relation.ChildTable.
TableName
, _table.
TableName
);
937
throw ExceptionBuilder.GetParentRowTableMismatch(relation.ChildTable.
TableName
, _table.
TableName
);
1330
throw ExceptionBuilder.SetParentRowTableMismatch(relation.ChildKey.Table.
TableName
, _table.
TableName
);
1335
throw ExceptionBuilder.SetParentRowTableMismatch(relation.ParentKey.Table.
TableName
, parentRow._table.
TableName
);
1356
throw ExceptionBuilder.SetParentRowTableMismatch(relation.ChildKey.Table.
TableName
, _table.
TableName
);
System\Data\DataRowCollection.cs (1)
80
throw ExceptionBuilder.RowInsertTwice(pos, _table.
TableName
);
System\Data\DataRowView.cs (1)
86
throw ExceptionBuilder.PropertyNotFound(property, _dataView.Table.
TableName
);
System\Data\DataSet.cs (8)
801
if (Tables.Contains(dt.
TableName
, value, false, true))
803
throw ExceptionBuilder.DuplicateTableName2(dt.
TableName
, value);
1225
ds.Tables[table.
TableName
, table.Namespace]!.Columns[col.ColumnName]!.CopyExpressionFrom(col);
1258
DataTable destTable = dsNew.Tables[table.
TableName
, table.Namespace]!;
1281
int rowBytes = (Tables[i].
TableName
.Length + 4) << 2;
1361
DataTable destTable = dsNew.Tables[table.
TableName
, table.Namespace]!;
2537
throw ExceptionBuilder.RowInsertMissing(t.
TableName
);
3620
throw ExceptionBuilder.TableNotInTheDataSet(dt.
TableName
);
System\Data\DataTable.cs (20)
27
[DefaultProperty(nameof(
TableName
))]
351
info.AddValue("DataTable.TableName",
TableName
);
1814
rel.ParentTable.Columns.UnregisterName(
TableName
);
1823
RaisePropertyChanging(nameof(
TableName
));
1829
RaisePropertyChanging(nameof(
TableName
));
1848
encodedTblName = XmlConvert.EncodeLocalName(
TableName
);
1918
if (_dataSet.Tables.Contains(
TableName
, realNamespace, true, true))
1919
throw ExceptionBuilder.DuplicateTableName2(
TableName
, realNamespace);
1944
if (_dataSet!.Tables.Contains(childTable.
TableName
, realNamespace, false, true))
1945
throw ExceptionBuilder.DuplicateTableName2(
TableName
, realNamespace);
1983
throw ExceptionBuilder.InValidNestedRelation(
TableName
);
2368
DataTable? destinationTable = ds.Tables[sourceTable.
TableName
, sourceTable.Namespace];
4589
/// Returns the <see cref='System.Data.DataTable.
TableName
'/> and <see cref='System.Data.DataTable.DisplayExpression'/>, if there is one as a concatenated string.
4592
TableName
:
4593
TableName
+ " + " + DisplayExpressionInternal;
4847
string keyName = XMLSchema.GenUniqueColumnName(
TableName
+ "_Id", this);
6378
throw ExceptionBuilder.RowInsertMissing(newDt.
TableName
);
6564
if (string.IsNullOrEmpty(
TableName
))
6566
TableName = currentTable.
TableName
;
6649
DataSet.Tables[tempTable.
TableName
, tempTable.Namespace]!.Columns[dc.ColumnName]!.Expression = dc.Expression;
System\Data\DataTableClearEvent.cs (1)
14
public string TableName => Table.
TableName
;
System\Data\DataTableCollection.cs (14)
112
if (table.
TableName
== name && table.Namespace == ns)
129
if (table.
TableName
== name)
292
if (table.
TableName
.Length == 0)
298
if (NamesEqual(table.
TableName
, _dataSet.DataSetName, false, _dataSet.Locale) != 0 && !table._fNestedInDataset)
302
RegisterName(table.
TableName
, table.Namespace);
368
UnregisterName(table.
TableName
);
399
throw ExceptionBuilder.TableNotInTheDataSet(table.
TableName
);
521
if (NamesEqual(table.
TableName
, name, true, _dataSet.Locale) == 1 && (ns == tableNamespace))
541
if (NamesEqual(table.
TableName
, name, true, _dataSet.Locale) == 1)
638
result = NamesEqual(table.
TableName
, tableName, false, _dataSet.Locale);
647
if (NamesEqual(dupTable.
TableName
, tableName, false, _dataSet.Locale) == 1)
675
result = NamesEqual(table.
TableName
, tableName, false, _dataSet.Locale);
744
if (NamesEqual(name, table.
TableName
, true, locale) != 0 && (tbNamespace == table.Namespace))
746
throw ExceptionBuilder.DuplicateTableName(((DataTable)_list[i]!).
TableName
);
System\Data\DataTablePropertyDescriptor.cs (1)
13
internal DataTablePropertyDescriptor(DataTable dataTable) : base(dataTable.
TableName
, null)
System\Data\DataTableReader.cs (11)
252
throw ExceptionBuilder.InvalidDataTableReader(_currentDataTable.
TableName
);
276
throw ExceptionBuilder.InvalidDataTableReader(_currentDataTable.
TableName
);
634
throw ExceptionBuilder.ColumnNotInTheTable(name, _currentDataTable.
TableName
);
755
BaseTableName.DefaultValue = table.
TableName
;
869
throw ExceptionBuilder.InvalidDataTableReader(_currentDataTable.
TableName
);
874
throw ExceptionBuilder.DataTableReaderSchemaIsInvalid(_currentDataTable.
TableName
); // may be we can use better error message!
883
throw ExceptionBuilder.EmptyDataTableReader(_currentDataTable.
TableName
);
891
throw ExceptionBuilder.InvalidDataTableReader(_currentDataTable!.
TableName
);
903
throw ExceptionBuilder.InvalidDataTableReader(_currentDataTable.
TableName
);
911
throw ExceptionBuilder.InvalidDataTableReader(_currentDataTable.
TableName
);
917
throw ExceptionBuilder.InvalidDataTableReader(_currentDataTable.
TableName
);
System\Data\DataView.cs (5)
490
if (value != null && value.
TableName
.Length == 0)
1160
return _table.
TableName
;
1170
return foundTable.
TableName
;
1689
dt.TableName = tableName ?? _table.
TableName
;
1711
throw ExceptionBuilder.ColumnNotInTheUnderlyingTable(columnNames[i], Table.
TableName
);
System\Data\DataViewManager.cs (1)
276
return table.
TableName
;
System\Data\Filter\AggregateNode.cs (1)
91
throw ExprException.UnresolvedRelation(table.
TableName
, ToString()!);
System\Data\Filter\LookupNode.cs (1)
44
throw ExprException.UnresolvedRelation(table.
TableName
, ToString()!);
System\Data\ForeignKeyConstraint.cs (6)
501
throw ExceptionBuilder.FailedClearParentTable(table.
TableName
, ConstraintName, Table.
TableName
);
691
iDest = destination.Tables.IndexOf(Table!.
TableName
);
695
iDest = destination.Tables.IndexOf(Table!.
TableName
, Table.Namespace, false); // pass false for last param
707
iDest = destination.Tables.IndexOf(RelatedTable.
TableName
);
711
iDest = destination.Tables.IndexOf(RelatedTable.
TableName
, RelatedTable.Namespace, false); // pass false for last param
System\Data\Merger.cs (14)
93
targetTable = _dataSet.Tables[sourceTable.
TableName
]!;
97
targetTable = _dataSet.Tables[sourceTable.
TableName
, sourceTable.Namespace]!; // we know that target table won't be null since MissingSchemaAction is Add , we have already added it!
162
_dataSet.Tables[src.
TableName
] :
163
_dataSet.Tables[src.
TableName
, src.Namespace];
317
if (_dataSet!.Tables.Contains(table.
TableName
, true))
321
targetTable = _dataSet.Tables[table.
TableName
];
325
targetTable = _dataSet.Tables[table.
TableName
, table.Namespace];
346
throw ExceptionBuilder.MergeMissingDefinition(table.
TableName
);
370
_dataSet!.RaiseMergeFailed(targetTable, SR.Format(SR.DataMerge_MissingColumnDefinition, table.
TableName
, src.ColumnName), _missingSchemaAction);
374
throw ExceptionBuilder.MergeFailed(SR.Format(SR.DataMerge_MissingColumnDefinition, table.
TableName
, src.ColumnName));
571
_dataSet.Tables[relation.ParentTable.
TableName
]! :
572
_dataSet.Tables[relation.ParentTable.
TableName
, relation.ParentTable.Namespace]!;
575
_dataSet.Tables[relation.ChildTable.
TableName
]! :
576
_dataSet.Tables[relation.ChildTable.
TableName
, relation.ChildTable.Namespace]!;
System\Data\ProviderBase\SchemaMapping.cs (8)
105
int index = _adapter.IndexOfDataSetTable(_dataTable.
TableName
);
114
MissingMappingAction.Passthrough => new DataTableMapping(_dataTable.
TableName
, _dataTable.
TableName
),
116
MissingMappingAction.Error => throw ADP.MissingTableMappingDestination(_dataTable.
TableName
),
132
int index = _adapter.IndexOfDataSetTable(_dataTable.
TableName
);
139
_tableMapping = new DataTableMapping(_dataTable.
TableName
, _dataTable.
TableName
);
1104
if (!commonFromMultiTable && !string.IsNullOrEmpty(commonBaseTable) && string.IsNullOrEmpty(_dataTable.
TableName
))
System\Data\RelationshipConverter.cs (4)
56
values = new object[] { rel.RelationName, rel.ParentKey.Table.
TableName
, rel.ChildKey.Table.
TableName
, rel.ParentColumnNames, rel.ChildColumnNames, rel.Nested };
64
values = new object[] { rel.RelationName, rel.ParentKey.Table.
TableName
, rel.ParentKey.Table.Namespace, rel.ChildKey.Table.
TableName
,
System\Data\UniqueConstraint.cs (2)
281
iDest = destination.Tables.IndexOf(Table!.
TableName
);
285
iDest = destination.Tables.IndexOf(Table!.
TableName
, Table.Namespace, false); // pass false for last param to be backward compatible
System\Data\XDRSchema.cs (2)
630
relation = new DataRelation(table.
TableName
+ "_" + _tableChild.
TableName
, parentKey, childKey, true);
System\Data\XmlDataLoader.cs (1)
696
bool topNodeIsTable = _isTableLevel || (_dataSet!.DataSetName != table.
TableName
);
System\Data\XMLDiffLoader.cs (1)
285
if (string.Equals(dt.
TableName
, tableName, StringComparison.Ordinal)
System\Data\xmlsaver.cs (23)
307
builder.Append(table.
TableName
).Append('_').Append(constr.ConstraintName);
1027
_dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt!.Namespace.Length == 0) ? dt.
TableName
: (dt.Namespace + ":" + dt.
TableName
))));
1049
_dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0) ? dt.
TableName
: (dt.Namespace + ":" + dt.
TableName
))));
1164
if ((_ds == null) || (_ds.Tables.InternalIndexOf(rel.ParentKey.Table.
TableName
) == -3))
1167
if ((_ds == null) || (_ds.Tables.InternalIndexOf(rel.ChildKey.Table.
TableName
) == -3))
1634
string generatedname = col.Table!.
TableName
+ "_Id";
1655
generatedname = rel.ParentColumnsReference[0].Table!.
TableName
+ "_Id";
1665
string rName = rel.ParentTable.
TableName
+ "_" + rel.ChildTable.
TableName
;
2012
if ((_ds == null) || (_ds.Tables.InternalIndexOf(table.
TableName
) == -3))
2094
if ((_ds == null) || (_ds.Tables.InternalIndexOf(table.
TableName
) == -3))
2140
if ((_ds == null) || (_ds.Tables.InternalIndexOf(foreign.RelatedTable.
TableName
) == -3)) // if there is a conflicting name/namespace only
2450
_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.
TableName
+ row.rowID.ToString(CultureInfo.InvariantCulture));
2475
_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.
TableName
+ row.rowID.ToString(CultureInfo.InvariantCulture));
2508
string rowIDString = table.
TableName
+ row.rowID.ToString(CultureInfo.InvariantCulture);
2515
parentId = parentRow.Table.
TableName
+ parentRow.rowID.ToString(CultureInfo.InvariantCulture);
2835
throw ExceptionBuilder.MultipleParentRows(tempTable.Namespace.Length == 0 ? tempTable.
TableName
: tempTable.Namespace + tempTable.
TableName
);
2914
throw ExceptionBuilder.MultipleParentRows(dt.Namespace.Length == 0 ? dt.
TableName
: (dt.Namespace + dt.
TableName
));
2951
_xmlw.WriteAttributeString(Keywords.DFF, Keywords.DIFFID, Keywords.DFFNS, row.Table.
TableName
+ row.rowID.ToString(CultureInfo.InvariantCulture));
System\Data\XMLSchema.cs (13)
918
(IsTable(el) && el.Name == table.
TableName
))
933
if (child == null && FromInference && el.Name == table.
TableName
)
941
if (!FromInference || el.Name != table.
TableName
)
1523
if (GetTableName(key) == table.
TableName
)
1661
if (GetTableName(key) == table.
TableName
)
1694
if (GetTableName(keyref) == _tableChild.
TableName
)
1696
if (_tableChild.DataSet!.Tables.InternalIndexOf(_tableChild.
TableName
) < -1)
1756
relation = new DataRelation(table.
TableName
+ "_" + _tableChild.
TableName
, parentKey, childKey, true);
2002
colName = table.
TableName
+ "_Text";
2009
colName = table.
TableName
+ "_text";
2115
colName = table.
TableName
+ "_Text";
2122
colName = table.
TableName
+ "_text";
System\Data\XmlToDatasetMap.cs (2)
326
string _tableLocalName = XmlConvert.EncodeLocalName(r.ChildTable.
TableName
);
398
string _tableLocalName = XmlConvert.EncodeLocalName(r.ChildTable.
TableName
);
System.Data.Odbc (2)
src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (2)
62
if ((sourceTable == null) || (collectionName != sourceTable.
TableName
))
315
Debug.Assert(dataSourceInfoTable.
TableName
== DbMetaDataCollectionNames.DataSourceInformation);