12 writes to Namespace
System.Data.Common (12)
System\Data\DataColumn.cs (1)
990private void ResetNamespace() => Namespace = null;
System\Data\ProviderBase\SchemaMapping.cs (1)
1185targetColumn.Namespace = ((IConvertible)value).ToString(CultureInfo.InvariantCulture);
System\Data\XDRSchema.cs (2)
460column.Namespace = (isAttribute) ? string.Empty : _schemaUri; 480column.Namespace = targetNamespace;
System\Data\XMLSchema.cs (8)
2311column.Namespace = attrib.QualifiedName.Namespace; 2312column.Namespace = GetStringAttribute(attrib, "targetNamespace", column.Namespace); 2501column.Namespace = elem.QualifiedName.Namespace; 2502column.Namespace = GetStringAttribute(el, "targetNamespace", column.Namespace); 2508column.Namespace = string.Empty; 2519column.Namespace = string.Empty; 2524column.Namespace = elem.QualifiedName.Namespace; 2525column.Namespace = GetStringAttribute(el, "targetNamespace", column.Namespace);
70 references to Namespace
System.Data.Common (70)
System\Data\DataColumn.cs (2)
977RaisePropertyChanging(nameof(Namespace)); 980else if (value != Namespace)
System\Data\DataColumnCollection.cs (1)
111if ((_columnFromName.TryGetValue(name, out column)) && (column != null) && (column.Namespace == ns))
System\Data\DataTableReader.cs (1)
842dr[BaseColumnNamespace] = dc.Namespace;
System\Data\XmlDataLoader.cs (1)
1222xmlAttrib.Namespace = column.Namespace;
System\Data\XMLDiffLoader.cs (2)
339value = row.GetAttribute(col.EncodedColumnName, col.Namespace); 415xmlAttrib.Namespace = column.Namespace;
System\Data\xmlsaver.cs (27)
1439if (col.Namespace.Length == 0) 1444if (col.Namespace != tgNamespace) 1508root.SetAttribute(Keywords.TARGETNAMESPACE, Keywords.MSDNS, col.Namespace); 1511if ((col.Namespace != (col.Table!.TypeName.IsEmpty ? col.Table.Namespace : col.Table.TypeName.Namespace)) && (col.Namespace.Length != 0)) 1513XmlElement schNode = GetSchema(col.Namespace); 1517root.SetAttribute(Keywords.REF, _prefixes[col.Namespace] + ":" + col.EncodedColumnName); 2043GetSchema(fields[k].Namespace); 2044if (!string.IsNullOrEmpty(fields[k].Namespace)) 2046encodedName.Append(_prefixes[fields[k].Namespace]).Append(':'); 2111GetSchema(fields[k].Namespace); 2112if (!string.IsNullOrEmpty(fields[k].Namespace)) 2114encodedName.Append(_prefixes[fields[k].Namespace]).Append(':'); 2195GetSchema(fields[k].Namespace); 2196if (!string.IsNullOrEmpty(fields[k].Namespace)) 2198encodedName.Append(_prefixes[fields[k].Namespace]).Append(':'); 2460string columnPrefix = (column.Namespace.Length != 0) ? column.Prefix : string.Empty; 2480_xmlw.WriteStartElement(columnPrefix, column.EncodedColumnName, column.Namespace); 2563string colPrefix = (col.Namespace.Length != 0) ? col.Prefix : string.Empty; 2567_xmlw.WriteAttributeString(colPrefix, col.EncodedColumnName, col.Namespace, value); 2585_xmlw.WriteStartElement(colPrefix, col.EncodedColumnName, col.Namespace); 2625xmlAttrib.Namespace = col.Namespace; 2976string colPrefix = (col.Namespace.Length == 0) ? "" : col.Prefix; 2981_xmlw.WriteAttributeString(colPrefix, col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml(value)); 3005string colPrefix = (col.Namespace.Length == 0) ? "" : col.Prefix; 3019_xmlw.WriteStartElement(colPrefix, col.EncodedColumnName, col.Namespace); 3058xmlAttrib.Namespace = col.Namespace;
System\Data\XMLSchema.cs (9)
2172column.Prefix = GetPrefix(column.Namespace); 2273(string.Equals(attrib.QualifiedName.Namespace, column.Namespace, StringComparison.Ordinal))) 2312column.Namespace = GetStringAttribute(attrib, "targetNamespace", column.Namespace); 2319column.Prefix = GetPrefix(column.Namespace); 2459(string.Equals(elem.QualifiedName.Namespace, column.Namespace, StringComparison.Ordinal))) 2502column.Namespace = GetStringAttribute(el, "targetNamespace", column.Namespace); 2525column.Namespace = GetStringAttribute(el, "targetNamespace", column.Namespace); 2540if (column.Namespace == table.Namespace) 2545column.Prefix = GetPrefix(column.Namespace); // it can inherit its NS from DataTable, if it is null
System\Data\XmlToDatasetMap.cs (4)
210string? columnNamespace = nameTable.Get(col.Namespace); 237string? columnNamespace = nameTable.Get(col.Namespace); // Get column namespace from nametable 241columnNamespace = nameTable.Add(col.Namespace); // Add it 524string? columnNamespace = nameTable.Get(col.Namespace);
System\Xml\DataPointer.cs (3)
453return _doc.NameTable.Add(_column.Namespace); 664n = _node.Attributes!.GetNamedItem(_column.EncodedColumnName, _column.Namespace); 670if (n.LocalName == _column.EncodedColumnName && n.NamespaceURI == _column.Namespace)
System\Xml\DataSetMappper.cs (1)
359object idColumn = GetIdentity(col.EncodedColumnName, col.Namespace);
System\Xml\XmlDataDocument.cs (6)
682node.SetAttribute(col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml(value)); 689newNode = new XmlBoundElement(string.Empty, col.EncodedColumnName, col.Namespace, this); 1487if (attr.LocalName == col.EncodedColumnName && attr.NamespaceURI == col.Namespace) 1505rowElement.SetAttribute(col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml(value)); 1526if (e.LocalName == col.EncodedColumnName && e.NamespaceURI == col.Namespace) 1555var newElem = new XmlBoundElement(string.Empty, col.EncodedColumnName, col.Namespace, this);
System\Xml\XPathNodePointer.cs (13)
163if (_column.Namespace == StrReservedXmlns) 267if (_column.Namespace == StrReservedXmlns) 273return _doc.NameTable.Add(_column.Namespace); 507if (c.Namespace != StrReservedXmlns) 599if (c.EncodedColumnName == localName && c.Namespace == namespaceURI) 641if (c.Namespace != StrReservedXmlns) 1293n = _node.Attributes!.GetNamedItem(_column.EncodedColumnName, _column.Namespace); 1299if (n.LocalName == _column.EncodedColumnName && n.NamespaceURI == _column.Namespace) 1346if (curCol.Namespace == StrReservedXmlns) 1431if (curCol.Namespace == StrReservedXmlns && curCol.ColumnName == name) 1494if (curCol.Namespace == StrReservedXmlns && !DuplicateNS(be, curCol.ColumnName)) 1577Debug.Assert(_column.Namespace == StrReservedXmlns); 1587if (curCol.Namespace == StrReservedXmlns)