12 writes to Namespace
System.Data (12)
fx\src\data\System\Data\DataColumn.cs (1)
1007this.Namespace = null;
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
1016targetColumn.Namespace = ((IConvertible)value).ToString(CultureInfo.InvariantCulture);
fx\src\data\System\Data\XDRSchema.cs (2)
423column.Namespace = (isAttribute) ? String.Empty : _schemaUri; 439column.Namespace = targetNamespace;
fx\src\data\System\Data\XMLSchema.cs (8)
2000column.Namespace = attrib.QualifiedName.Namespace; 2001column.Namespace = GetStringAttribute(attrib, "targetNamespace", column.Namespace); 2163column.Namespace = elem.QualifiedName.Namespace; 2164column.Namespace = GetStringAttribute(el, "targetNamespace", column.Namespace); 2168column.Namespace = String.Empty; 2176column.Namespace = String.Empty; 2180column.Namespace = elem.QualifiedName.Namespace; 2181column.Namespace = GetStringAttribute(el, "targetNamespace", column.Namespace);
71 references to Namespace
System.Data (71)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
657tableInitClass.Statements.Add(Assign(Property(codeField, "Namespace"), Str(column.Namespace)));
fx\src\data\System\Data\DataColumn.cs (1)
995else if (value != this.Namespace) {
fx\src\data\System\Data\DataColumnCollection.cs (1)
121if ((columnFromName.TryGetValue(name, out column)) && (column != null) && (column.Namespace == ns)) {
fx\src\data\System\Data\DataTableReader.cs (1)
716dr[BaseColumnNamespace] = dc.Namespace;
fx\src\data\System\Data\XmlDataLoader.cs (1)
1144xmlAttrib.Namespace = column.Namespace;
fx\src\data\System\Data\XMLDiffLoader.cs (2)
312value = row.GetAttribute(col.EncodedColumnName, col.Namespace); 376xmlAttrib.Namespace = column.Namespace;
fx\src\data\System\Data\xmlsaver.cs (28)
1212if (col.Namespace.Length == 0) { 1216if (col.Namespace != tgNamespace) { 1269root.SetAttribute( Keywords.TARGETNAMESPACE, Keywords.MSDNS, col.Namespace); 1273if ((col.Namespace != (col.Table.TypeName.IsEmpty ? col.Table.Namespace : col.Table.TypeName.Namespace)) && (col.Namespace.Length != 0)) 1275XmlElement schNode = GetSchema(col.Namespace); 1279root.SetAttribute( Keywords.REF, prefixes[ col.Namespace]+":"+ col.EncodedColumnName); 1281string prefix = (string)prefixes[col.Namespace]; 1757GetSchema(fields[k].Namespace); 1758if (!Common.ADP.IsEmpty(fields[k].Namespace)) { 1759encodedName.Append(prefixes[fields[k].Namespace]).Append(':'); 1816GetSchema(fields[k].Namespace); 1817if (!Common.ADP.IsEmpty(fields[k].Namespace)) { 1818encodedName.Append(prefixes[fields[k].Namespace]).Append(':'); 1890GetSchema(fields[k].Namespace); 1891if (!Common.ADP.IsEmpty(fields[k].Namespace)) { 1892encodedName.Append(prefixes[fields[k].Namespace]).Append(':'); 2123string columnPrefix = (column.Namespace.Length != 0) ? column.Prefix : String.Empty; 2141_xmlw.WriteStartElement( columnPrefix, column.EncodedColumnName, column.Namespace); 2216string colPrefix = (col.Namespace.Length != 0) ? col.Prefix : String.Empty; 2220_xmlw.WriteAttributeString(colPrefix, col.EncodedColumnName, col.Namespace, value); 2237_xmlw.WriteStartElement( colPrefix, col.EncodedColumnName, col.Namespace); 2267xmlAttrib.Namespace = col.Namespace; 2570string colPrefix = (col.Namespace.Length == 0) ? "" : col.Prefix; 2574_xmlw.WriteAttributeString(colPrefix, col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml(value)); 2597string colPrefix = (col.Namespace.Length == 0) ? "" : col.Prefix; 2608_xmlw.WriteStartElement(colPrefix, col.EncodedColumnName, col.Namespace); 2639xmlAttrib.Namespace = col.Namespace;
fx\src\data\System\Data\XMLSchema.cs (9)
1879column.Prefix = GetPrefix(column.Namespace); 1966(string.Compare(attrib.QualifiedName.Namespace, column.Namespace, StringComparison.Ordinal) == 0)) 2001column.Namespace = GetStringAttribute(attrib, "targetNamespace", column.Namespace); 2006column.Prefix = GetPrefix(column.Namespace); 2126(string.Compare(elem.QualifiedName.Namespace, column.Namespace, StringComparison.Ordinal) == 0)) 2164column.Namespace = GetStringAttribute(el, "targetNamespace", column.Namespace); 2181column.Namespace = GetStringAttribute(el, "targetNamespace", column.Namespace); 2195if (column.Namespace == table.Namespace) 2199column.Prefix = GetPrefix(column.Namespace); // it can inherit its NS from DataTable, if it is null
fx\src\data\System\Data\XmlToDatasetMap.cs (4)
191string columnNamespace = nameTable.Get(col.Namespace ); 217string columnNamespace = nameTable.Get(col.Namespace ); // Get column namespace from nametable 220columnNamespace = nameTable.Add(col.Namespace); // Add it 478string columnNamespace = nameTable.Get(col.Namespace);
fx\src\data\System\NewXml\DataPointer.cs (3)
367return doc.NameTable.Add(column.Namespace); 535n = node.Attributes.GetNamedItem( column.EncodedColumnName, column.Namespace ); 539if (n.LocalName == column.EncodedColumnName && n.NamespaceURI == column.Namespace)
fx\src\data\System\NewXml\DataSetMappper.cs (1)
323object idColumn = GetIdentity( col.EncodedColumnName, col.Namespace );
fx\src\data\System\NewXml\XmlDataDocument.cs (6)
619node.SetAttribute( col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml( value ) ); 624newNode = new XmlBoundElement( string.Empty, col.EncodedColumnName, col.Namespace, this ); 1334if ( attr.LocalName == col.EncodedColumnName && attr.NamespaceURI == col.Namespace ) { 1348rowElement.SetAttribute( col.EncodedColumnName, col.Namespace, col.ConvertObjectToXml( value ) ); 1365if ( e.LocalName == col.EncodedColumnName && e.NamespaceURI == col.Namespace ) { 1390XmlElement newElem = new XmlBoundElement( string.Empty, col.EncodedColumnName, col.Namespace, this );
fx\src\data\System\NewXml\XPathNodePointer.cs (13)
162if ( this._column.Namespace == s_strReservedXmlns ) 248if ( _column.Namespace == s_strReservedXmlns ) 251return _doc.NameTable.Add(_column.Namespace); 478if ( c.Namespace != s_strReservedXmlns ) 560if (c.EncodedColumnName == localName && c.Namespace == namespaceURI) { 596if ( c.Namespace != s_strReservedXmlns ) { 1164n = _node.Attributes.GetNamedItem( _column.EncodedColumnName, _column.Namespace ); 1168if (n.LocalName == _column.EncodedColumnName && n.NamespaceURI == _column.Namespace) 1211if ( curCol.Namespace == s_strReservedXmlns ) { 1291if ( curCol.Namespace == s_strReservedXmlns && curCol.ColumnName == name ) { 1344if ( curCol.Namespace == s_strReservedXmlns && !DuplicateNS( be, curCol.ColumnName ) ) { 1414Debug.Assert( this._column.Namespace == s_strReservedXmlns ); 1423if ( curCol.Namespace == s_strReservedXmlns ) {