11 writes to Namespace
System.Data.Common (11)
System\Data\DataTable.cs (4)
191
Namespace
= tableNamespace;
333
Namespace
= table.Namespace;
2021
Namespace
= null;
6569
Namespace
= currentTable.Namespace;
System\Data\DataView.cs (1)
1690
dt.
Namespace
= _table.Namespace;
System\Data\XDRSchema.cs (2)
575
table.
Namespace
= _schemaUri;
660
table.
Namespace
= _schemaUri;
System\Data\XMLSchema.cs (4)
1459
table.
Namespace
= _TableUri;
1461
table.
Namespace
= GetStringAttribute(node, "targetNamespace", _TableUri);
1588
table.
Namespace
= _TableUri;
1589
table.
Namespace
= GetStringAttribute(node, "targetNamespace", _TableUri);
153 references to Namespace
System.Data.Common (153)
System\Data\DataColumn.cs (1)
963
return Table.
Namespace
;
System\Data\DataRelation.cs (7)
403
if (rel.ParentTable.
Namespace
!= ns)
483
CheckNamespaceValidityForNestedRelations(ParentTable.
Namespace
);
542
if (string.IsNullOrEmpty(ChildTable.
Namespace
) && ((ChildTable.NestedParentsCount > 1) ||
552
parentNs = rel.ParentTable.
Namespace
;
556
if (!string.Equals(parentNs, rel.ParentTable.
Namespace
, StringComparison.Ordinal))
718
DataTable parent = destination.Tables[ParentTable.TableName, ParentTable.
Namespace
]!;
719
DataTable child = destination.Tables[ChildTable.TableName, ChildTable.
Namespace
]!;
System\Data\DataRelationCollection.cs (1)
209
relation.CheckNamespaceValidityForNestedRelations(relation.ParentTable.
Namespace
);
System\Data\DataSet.cs (4)
1174
dt._tableNamespace = tbls[i].
Namespace
; // hardcode the namespace for a second to not mess up
1225
ds.Tables[table.TableName, table.
Namespace
]!.Columns[col.ColumnName]!.CopyExpressionFrom(col);
1258
DataTable destTable = dsNew.Tables[table.TableName, table.
Namespace
]!;
1361
DataTable destTable = dsNew.Tables[table.TableName, table.
Namespace
]!;
System\Data\DataTable.cs (26)
278
ds._namespaceURI =
Namespace
;
286
_dataSet._namespaceURI =
Namespace
;
333
Namespace = table.
Namespace
;
352
info.AddValue("DataTable.Namespace",
Namespace
);
1797
_dataSet.Tables.RegisterName(value,
Namespace
);
1809
_dataSet.Tables.RegisterName(value,
Namespace
);
1914
if (realNamespace !=
Namespace
)
1981
if (rel.ParentTable != parentTable && rel.ParentTable.
Namespace
!= ns)
1991
RaisePropertyChanging(nameof(
Namespace
));
1998
col.RaisePropertyChanging(nameof(
Namespace
));
2012
/// Indicates whether the <see cref='System.Data.DataTable.
Namespace
'/> property should be persisted.
2017
/// Resets the <see cref='System.Data.DataTable.
Namespace
'/> property to its default state.
2368
DataTable? destinationTable = ds.Tables[sourceTable.TableName, sourceTable.
Namespace
];
5429
ds.Namespace =
Namespace
;
5596
ds.Namespace =
Namespace
;
5720
if ((
Namespace
== reader.Value) &&
6499
if (!string.IsNullOrEmpty(
Namespace
))
6501
currentTable = ds.Tables[_tableName,
Namespace
];
6530
qTableName = (
Namespace
.Length > 0) ? (
Namespace
+ ":" + _tableName) : _tableName;
6557
_tableNamespace = tempTable.
Namespace
;
6567
if (!string.IsNullOrEmpty(currentTable.
Namespace
))
6569
Namespace = currentTable.
Namespace
;
6598
DataTable destinationTable = DataSet.Tables[tempTable._tableName, tempTable.
Namespace
]!;
6599
DataTable sourceTable = ds.Tables[tempTable._tableName, tempTable.
Namespace
]!;
6649
DataSet.Tables[tempTable.TableName, tempTable.
Namespace
]!.Columns[dc.ColumnName]!.Expression = dc.Expression;
System\Data\DataTableClearEvent.cs (1)
15
public string TableNamespace => Table.
Namespace
;
System\Data\DataTableCollection.cs (7)
112
if (table.TableName == name && table.
Namespace
== ns)
131
if (table.
Namespace
== ns)
302
RegisterName(table.TableName, table.
Namespace
);
520
string? ns = checkProperty ? table.
Namespace
: table._tableNamespace;
676
if ((result == 1) && (table.
Namespace
== tableNamespace))
679
if ((result == -1) && (table.
Namespace
== tableNamespace))
744
if (NamesEqual(name, table.TableName, true, locale) != 0 && (tbNamespace == table.
Namespace
))
System\Data\DataTableReader.cs (1)
756
BaseTableNamespace.DefaultValue = table.
Namespace
;
System\Data\DataView.cs (1)
1690
dt.Namespace = _table.
Namespace
;
System\Data\ForeignKeyConstraint.cs (2)
695
iDest = destination.Tables.IndexOf(Table!.TableName, Table.
Namespace
, false); // pass false for last param
711
iDest = destination.Tables.IndexOf(RelatedTable.TableName, RelatedTable.
Namespace
, false); // pass false for last param
System\Data\Merger.cs (5)
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!
163
_dataSet.Tables[src.TableName, src.
Namespace
];
325
targetTable = _dataSet.Tables[table.TableName, table.
Namespace
];
572
_dataSet.Tables[relation.ParentTable.TableName, relation.ParentTable.
Namespace
]!;
576
_dataSet.Tables[relation.ChildTable.TableName, relation.ChildTable.
Namespace
]!;
System\Data\RelationshipConverter.cs (4)
51
if (string.IsNullOrEmpty(parentTable.
Namespace
) && string.IsNullOrEmpty(childTable.
Namespace
))
64
values = new object[] { rel.RelationName, rel.ParentKey.Table.TableName, rel.ParentKey.Table.
Namespace
, rel.ChildKey.Table.TableName,
65
rel.ChildKey.Table.
Namespace
, rel.ParentColumnNames, rel.ChildColumnNames, rel.Nested };
System\Data\UniqueConstraint.cs (1)
285
iDest = destination.Tables.IndexOf(Table!.TableName, Table.
Namespace
, false); // pass false for last param to be backward compatible
System\Data\XMLDiffLoader.cs (1)
286
&& string.Equals(dt.
Namespace
, ns, StringComparison.Ordinal))
System\Data\xmlsaver.cs (67)
605
WriteSchemaRoot(rootSchema, _dt.
Namespace
);
617
_namespaces[_dt.
Namespace
] = rootSchema;
699
if (((_ds != null) && (_ds.Namespace == top[i].
Namespace
)) || string.IsNullOrEmpty(top[i].
Namespace
) || (_schFormat == SchemaFormat.Remoting))
703
if (((_ds != null) && (_ds.Namespace.Length != 0)) && string.IsNullOrEmpty(top[i].
Namespace
))
739
if ((_ds != null && _ds.Namespace == top[i].
Namespace
) || string.IsNullOrEmpty(top[i].
Namespace
) || (_schFormat == SchemaFormat.Remoting))
742
node.SetAttribute(Keywords.REF, ((string)_prefixes[top[i].
Namespace
]!) + ':' + top[i].EncodedTableName);
751
AppendChildWithoutRef(top[i].
Namespace
, el);
753
node.SetAttribute(Keywords.REF, ((string)_prefixes[top[i].
Namespace
]!) + ':' + top[i].EncodedTableName);
814
if (ns == ((_ds != null) ? _ds.Namespace : _dt.
Namespace
) || string.IsNullOrEmpty(ns))
845
if (ns == ((_ds != null) ? _ds.Namespace : _dt.
Namespace
) || string.IsNullOrEmpty(ns))
892
if (imp_ns == ((_ds != null) ? _ds.Namespace : _dt.
Namespace
))
960
WriteSchemaRoot(rootSchema, dt.
Namespace
);
986
_namespaces[dt.
Namespace
] = rootSchema;
987
if (dt.
Namespace
.Length == 0)
989
_prefixes[dt.
Namespace
] = null;
994
rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, dt.
Namespace
);
995
_prefixes[dt.
Namespace
] = "mstns";
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))));
1165
root.SetAttribute(Keywords.MSD_PARENTTABLENS, Keywords.MSDNS, rel.ParentKey.Table.
Namespace
);
1168
root.SetAttribute(Keywords.MSD_CHILDTABLENS, Keywords.MSDNS, rel.ChildKey.Table.
Namespace
);
1264
(col.Table!.DataSet != null ? col.Table.DataSet.Namespace : col.Table.
Namespace
);
1394
string tgNamespace = table.TypeName.IsEmpty ? table.
Namespace
: table.TypeName.Namespace;
1511
if ((col.Namespace != (col.Table!.TypeName.IsEmpty ? col.Table.
Namespace
: col.Table.TypeName.Namespace)) && (col.Namespace.Length != 0))
1518
if (col.Table.
Namespace
!= _ds!.Namespace)
1520
_ = GetSchema(col.Table.
Namespace
);
1737
if (((table.DataSet == null) || (_ds != null && table.
Namespace
!= _ds.Namespace)) && (_schFormat == SchemaFormat.Remoting))
1738
root.SetAttribute(Keywords.TARGETNAMESPACE, Keywords.MSDNS, table.
Namespace
);
1743
if (table.
Namespace
.Length == 0)
1746
string tgNamespace = _table.
Namespace
;
1772
tgNamespace = _table.
Namespace
;
1775
if (table.
Namespace
!= tgNamespace)
1843
typeSchema = GetSchema(table.
Namespace
);
1845
typeSchema = fUnqualified ? GetSchema(_ds.Namespace) : GetSchema(table.
Namespace
);
1948
if (childTable.
Namespace
== table.
Namespace
)
1954
if ((childTable.
Namespace
== table.
Namespace
) || (childTable.
Namespace
.Length == 0) || _schFormat == SchemaFormat.Remoting)
1961
GetSchema(childTable.
Namespace
).AppendChild(NestedTable);
1963
NestedTable.SetAttribute(Keywords.REF, ((string)_prefixes[childTable.
Namespace
]!) + ':' + childTable.EncodedTableName);
1992
GetSchema(table.
Namespace
); // to ensure prefix handling
1993
xpathprefix = table.
Namespace
.Length != 0 ? (string)_prefixes[table.
Namespace
]! + ':' : string.Empty;
2013
constraint.SetAttribute(Keywords.MSD_TABLENS, Keywords.MSDNS, table.
Namespace
);
2095
constraint.SetAttribute(Keywords.MSD_TABLENS, Keywords.MSDNS, table.
Namespace
);
2141
constraint.SetAttribute(Keywords.MSD_TABLENS, Keywords.MSDNS, foreign.Table!.
Namespace
);
2441
string prefix = (table.
Namespace
.Length != 0) ? table.Prefix : string.Empty;
2449
_xmlw.WriteStartElement(prefix, row.Table.EncodedTableName, row.Table.
Namespace
);
2474
_xmlw.WriteStartElement(prefix, row.Table.EncodedTableName, row.Table.
Namespace
);
2520
string tablePrefix = (table.
Namespace
.Length != 0) ? table.Prefix : string.Empty;
2523
_xmlw.WriteStartElement(tablePrefix, row.Table.EncodedTableName, row.Table.
Namespace
);
2811
string prefix = (_ds != null) ? ((_ds.Namespace.Length == 0) ? "" : _ds.Prefix) : ((_dt!.
Namespace
.Length == 0) ? "" : _dt.Prefix);
2814
_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, (_dt!.
Namespace
== null) ? "" : _dt.
Namespace
);
2835
throw ExceptionBuilder.MultipleParentRows(tempTable.
Namespace
.Length == 0 ? tempTable.TableName : tempTable.
Namespace
+ tempTable.TableName);
2856
string prefix = (_ds != null) ? ((_ds.Namespace.Length == 0) ? "" : _ds.Prefix) : ((_dt!.
Namespace
.Length == 0) ? "" : _dt.Prefix);
2868
_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, _dt!.
Namespace
);
2914
throw ExceptionBuilder.MultipleParentRows(dt.
Namespace
.Length == 0 ? dt.TableName : (dt.
Namespace
+ dt.TableName));
2945
string prefix = (row.Table.
Namespace
.Length == 0) ? "" : row.Table.Prefix;
2947
_xmlw.WriteStartElement(prefix, encodedTableName, row.Table.
Namespace
);
System\Data\XMLSchema.cs (12)
812
if (dt.NestedParentRelations.Length == 0 && dt.
Namespace
== ds.Namespace)
818
if (childRelations[j].Nested && dt.
Namespace
== childRelations[j].ChildTable.
Namespace
)
846
ds.Namespace = ds.Tables[0].
Namespace
;
917
if (((el.Name == null) && (el.RefName.Name == table.EncodedTableName && el.RefName.Namespace == table.
Namespace
)) ||
1664
if (GetTableNamespace(key) == table.
Namespace
|| GetTableNamespace(key) == null)
1680
if (_tableChild != table && table.
Namespace
== _tableChild.
Namespace
)
1698
if (GetTableNamespace(keyref) == _tableChild.
Namespace
)
2072
column.Prefix = GetPrefix(table.
Namespace
);
2499
if (!elem.RefName.IsEmpty || elem.QualifiedName.Namespace != table.
Namespace
)
2540
if (column.Namespace == table.
Namespace
)
System\Data\XmlToDatasetMap.cs (8)
72
_id.NamespaceURI = table.
Namespace
;
155
string? tableNamespace = nameTable.Get(table.
Namespace
);
185
string? tableNamespace = nameTable.Get(table.
Namespace
); // Look ip table namespace
189
tableNamespace = nameTable.Add(table.
Namespace
); // Add it
332
nameTable.Get(r.ChildTable.
Namespace
) ??
333
nameTable.Add(r.ChildTable.
Namespace
);
405
nameTable.Get(r.ChildTable.
Namespace
) ??
406
nameTable.Add(r.ChildTable.
Namespace
);
System\Xml\DataSetMappper.cs (2)
352
object idTable = GetIdentity(table.EncodedTableName, table.
Namespace
);
358
object idTable = GetIdentity(table.EncodedTableName, table.
Namespace
);
System\Xml\XmlDataDocument.cs (2)
1360
XmlBoundElement rowElement = new XmlBoundElement(string.Empty, table.EncodedTableName, table.
Namespace
, this);
3143
if (dt.
Namespace
!= ds.Namespace)