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