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