11 writes to Namespace
System.Data (11)
fx\src\data\System\Data\DataTable.cs (4)
206this.Namespace = tableNamespace; 304this.Namespace = table.Namespace; 1873this.Namespace = null; 5794this.Namespace = currentTable.Namespace;
fx\src\data\System\Data\DataView.cs (1)
1690dt.Namespace = this.table.Namespace;
fx\src\data\System\Data\XDRSchema.cs (2)
554table.Namespace = _schemaUri; 632table.Namespace = _schemaUri;
fx\src\data\System\Data\XMLSchema.cs (4)
1249table.Namespace = _TableUri; 1251table.Namespace = GetStringAttribute(node, "targetNamespace", _TableUri); 1365table.Namespace = _TableUri; 1366table.Namespace = GetStringAttribute(node, "targetNamespace", _TableUri);
152 references to Namespace
System.Data (152)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
687tableInitClass.Statements.Add(Assign(Property(This(), "Namespace"), Str(table.Namespace)));
fx\src\data\System\Data\DataColumn.cs (1)
981return Table.Namespace;
fx\src\data\System\Data\DataRelation.cs (7)
407if (rel.ParentTable.Namespace != ns) { 480CheckNamespaceValidityForNestedRelations(ParentTable.Namespace); 525if (ADP.IsEmpty(ChildTable.Namespace) && ((ChildTable.NestedParentsCount > 1) || 531parentNs = rel.ParentTable.Namespace; 534if (String.Compare(parentNs, rel.ParentTable.Namespace, StringComparison.Ordinal) != 0) { 698DataTable parent = destination.Tables[ParentTable.TableName, ParentTable.Namespace]; 699DataTable child = destination.Tables[ChildTable.TableName, ChildTable.Namespace];
fx\src\data\System\Data\DataRelationCollection.cs (1)
201relation.CheckNamespaceValidityForNestedRelations(relation.ParentTable.Namespace);
fx\src\data\System\Data\DataSet.cs (4)
1126dt.tableNamespace = tbls[i].Namespace; // hardcode the namespace for a second to not mess up 1163ds.Tables[table.TableName, table.Namespace].Columns[col.ColumnName].Expression = col.Expression; 1191DataTable destTable = dsNew.Tables[table.TableName, table.Namespace]; 1285DataTable destTable = dsNew.Tables[table.TableName, table.Namespace];
fx\src\data\System\Data\DataTable.cs (24)
262ds.namespaceURI = this.Namespace; 268this.DataSet.namespaceURI = this.Namespace; //this.DataSet.Namespace = this.Namespace; ?? 304this.Namespace = table.Namespace; 320info.AddValue("DataTable.Namespace", Namespace); 1677dataSet.Tables.RegisterName(value, this.Namespace); 1686dataSet.Tables.RegisterName(value, this.Namespace); 1781if (realNamespace != Namespace) { 1835if (rel.ParentTable != parentTable && rel.ParentTable.Namespace != ns) { 1860/// Indicates whether the <see cref='System.Data.DataTable.Namespace'/> property should be persisted. 1869/// Resets the <see cref='System.Data.DataTable.Namespace'/> property to its default state. 2180DataTable destinationTable = ds.Tables[sourceTable.TableName, sourceTable.Namespace]; 4856ds.Namespace = this.Namespace; 5001ds.Namespace = this.Namespace; 5107if ((this.Namespace == reader.Value) && 5738if (!Common.ADP.IsEmpty(this.Namespace)) { 5739currentTable = ds.Tables[this.tableName, this.Namespace]; 5762qTableName = (this.Namespace.Length > 0)? (this.Namespace + ":" + this.tableName):this.tableName; 5785this.tableNamespace = tempTable.Namespace; 5793if (!Common.ADP.IsEmpty(currentTable.Namespace)) { 5794this.Namespace = currentTable.Namespace; 5819DataTable destinationTable = this.DataSet.Tables[tempTable.tableName, tempTable.Namespace]; 5820DataTable sourceTable = ds.Tables[tempTable.tableName, tempTable.Namespace]; 5854this.DataSet.Tables[tempTable.TableName, tempTable.Namespace].Columns[dc.ColumnName].Expression = dc.Expression;
fx\src\data\System\Data\DataTableClearEvent.cs (1)
35return dataTable.Namespace;
fx\src\data\System\Data\DataTableCollection.cs (7)
115if (table.TableName == name && table.Namespace == ns) 129if (table.Namespace == ns) 290RegisterName(table.TableName, table.Namespace); 481string ns = checkProperty ? table.Namespace : table.tableNamespace ; 607if ((result == 1) && (table.Namespace == tableNamespace)) 610if ((result == -1) && (table.Namespace == tableNamespace)) 674if (NamesEqual(name, table.TableName, true, locale) != 0 && (tbNamespace == table.Namespace)) {
fx\src\data\System\Data\DataTableReader.cs (1)
640BaseTableNamespace.DefaultValue = table.Namespace;
fx\src\data\System\Data\DataView.cs (1)
1690dt.Namespace = this.table.Namespace;
fx\src\data\System\Data\ForeignKeyConstraint.cs (2)
620iDest = destination.Tables.IndexOf(Table.TableName, Table.Namespace, false); // pass false for last param 631iDest = destination.Tables.IndexOf(RelatedTable.TableName, RelatedTable.Namespace, false);// pass false for last param
fx\src\data\System\Data\Merger.cs (5)
91targetTable = dataSet.Tables[sourceTable.TableName, sourceTable.Namespace];// we know that target table wont be null since MissingSchemaAction is Add , we have already added it! 145dt = dataSet.Tables[src.TableName, src.Namespace]; 279targetTable = dataSet.Tables[table.TableName, table.Namespace]; 486parent = dataSet.Tables[relation.ParentTable.TableName, relation.ParentTable.Namespace]; 495child = dataSet.Tables[relation.ChildTable.TableName,relation.ChildTable.Namespace];
fx\src\data\System\Data\RelationshipConverter.cs (4)
54if (System.Data.Common.ADP.IsEmpty(parentTable.Namespace) && System.Data.Common.ADP.IsEmpty(childTable.Namespace)) { 65values = new object[] { rel.RelationName, rel.ParentKey.Table.TableName, rel.ParentKey.Table.Namespace, rel.ChildKey.Table.TableName, 66rel.ChildKey.Table.Namespace, rel.ParentColumnNames, rel.ChildColumnNames, rel.Nested };
fx\src\data\System\Data\UniqueConstraint.cs (1)
263iDest = destination.Tables.IndexOf(Table.TableName, Table.Namespace, false);// pass false for last param to be backward compatable
fx\src\data\System\Data\XMLDiffLoader.cs (1)
266&& (string.Compare(dt.Namespace, ns, StringComparison.Ordinal) == 0))
fx\src\data\System\Data\xmlsaver.cs (67)
517WriteSchemaRoot(xd, rootSchema, _dt.Namespace); 526namespaces[_dt.Namespace] = rootSchema; 599if (((_ds != null )&& (_ds.Namespace == top[i].Namespace)) || Common.ADP.IsEmpty(top[i].Namespace) || (schFormat == SchemaFormat.Remoting)) { 602if (((_ds != null )&& (_ds.Namespace.Length != 0)) && Common.ADP.IsEmpty(top[i].Namespace)) { 630if ((_ds != null && _ds.Namespace == top[i].Namespace) || Common.ADP.IsEmpty(top[i].Namespace) || (schFormat == SchemaFormat.Remoting)) 633node.SetAttribute(Keywords.REF, ((string)prefixes[top[i].Namespace])+':'+top[i].EncodedTableName); 641AppendChildWithoutRef(rootSchema, top[i].Namespace, el, Keywords.XSD_ELEMENT); 643node.SetAttribute(Keywords.REF, ((string)prefixes[top[i].Namespace])+':'+top[i].EncodedTableName); 695if (ns == ((_ds != null) ? _ds.Namespace : _dt.Namespace) || Common.ADP.IsEmpty(ns)) { 721if (ns == ((_ds != null)?_ds.Namespace:_dt.Namespace) || Common.ADP.IsEmpty(ns)) { 760if (imp_ns == ((_ds != null)?_ds.Namespace:_dt.Namespace)) 816WriteSchemaRoot(xd, rootSchema, dt.Namespace); 837namespaces[dt.Namespace] = rootSchema; 838if (dt.Namespace.Length == 0) { 839prefixes[dt.Namespace] = null; 843rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, dt.Namespace ); 844prefixes[dt.Namespace] = "mstns"; 871dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0)?dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 888dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0)?dt.TableName : (dt.Namespace + ":" + dt.TableName)))); 981root.SetAttribute( Keywords.MSD_PARENTTABLENS, Keywords.MSDNS, rel.ParentKey.Table.Namespace); 984root.SetAttribute( Keywords.MSD_CHILDTABLENS, Keywords.MSDNS, rel.ChildKey.Table.Namespace); 1065(col.Table.DataSet != null ? col.Table.DataSet.Namespace : col.Table.Namespace); 1179string tgNamespace = table.TypeName.IsEmpty ? table.Namespace : table.TypeName.Namespace; 1273if ((col.Namespace != (col.Table.TypeName.IsEmpty ? col.Table.Namespace : col.Table.TypeName.Namespace)) && (col.Namespace.Length != 0)) 1280if (col.Table.Namespace!=_ds.Namespace) { 1282XmlElement tNode = GetSchema(col.Table.Namespace); 1478if (((table.DataSet == null) || (_ds!= null && table.Namespace != _ds.Namespace)) && (schFormat == SchemaFormat.Remoting)) 1479root.SetAttribute( Keywords.TARGETNAMESPACE, Keywords.MSDNS, table.Namespace); 1484if (table.Namespace.Length == 0) { 1486string tgNamespace = _table.Namespace; 1506tgNamespace = _table.Namespace; 1509if (table.Namespace != tgNamespace) { 1568typeSchema = GetSchema(table.Namespace); 1570typeSchema = fUnqualified ? GetSchema(_ds.Namespace): GetSchema(table.Namespace); 1667if (childTable.Namespace == table.Namespace) { 1672if ((childTable.Namespace == table.Namespace) || (childTable.Namespace.Length == 0) || schFormat == SchemaFormat.Remoting) { 1677GetSchema(childTable.Namespace).AppendChild(NestedTable); 1679NestedTable.SetAttribute( Keywords.REF, ((string)prefixes[childTable.Namespace])+':'+childTable.EncodedTableName); 1709GetSchema(table.Namespace); // to ensure prefix handling 1710xpathprefix = table.Namespace.Length != 0 ? (string) prefixes[table.Namespace] +':' : String.Empty; 1731constraint.SetAttribute( Keywords.MSD_TABLENS, Keywords.MSDNS, table.Namespace); 1803constraint.SetAttribute( Keywords.MSD_TABLENS, Keywords.MSDNS, table.Namespace); 1843constraint.SetAttribute (Keywords.MSD_TABLENS, Keywords.MSDNS, foreign.Table.Namespace); 2107string prefix = (table.Namespace.Length != 0) ? table.Prefix : String.Empty; 2113_xmlw.WriteStartElement( prefix, row.Table.EncodedTableName, row.Table.Namespace); 2134_xmlw.WriteStartElement( prefix, row.Table.EncodedTableName, row.Table.Namespace); 2176string tablePrefix = (table.Namespace.Length != 0) ? table.Prefix : String.Empty; 2182_xmlw.WriteStartElement( tablePrefix, row.Table.EncodedTableName, row.Table.Namespace); 2430string prefix = (_ds!= null)?(( _ds.Namespace.Length == 0 )? "" : _ds.Prefix):(( _dt.Namespace.Length == 0 )? "" : _dt.Prefix); 2433_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, ( _dt.Namespace == null) ? "":_dt.Namespace); 2450throw ExceptionBuilder.MultipleParentRows(tempTable.Namespace.Length == 0 ? tempTable.TableName:tempTable.Namespace + tempTable.TableName); 2468string prefix = (_ds!= null)?(( _ds.Namespace.Length == 0 )? "" : _ds.Prefix):(( _dt.Namespace.Length == 0 )? "" : _dt.Prefix); 2478_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, _dt.Namespace); 2514throw ExceptionBuilder.MultipleParentRows(dt.Namespace.Length == 0 ? dt.TableName : (dt.Namespace + dt.TableName)); 2540string prefix = (row.Table.Namespace.Length == 0) ? "" : row.Table.Prefix; 2542_xmlw.WriteStartElement(prefix, encodedTableName, row.Table.Namespace);
fx\src\data\System\Data\XMLSchema.cs (12)
698if (dt.NestedParentRelations.Length == 0 && dt.Namespace == ds.Namespace) { 701if (childRelations[j].Nested && dt.Namespace == childRelations[j].ChildTable.Namespace) { // take NS from Parent table 725ds.Namespace = ds.Tables[0].Namespace; 785if (((el.Name == null) && (el.RefName.Name == table.EncodedTableName && el.RefName.Namespace == table.Namespace)) || 1434if( GetTableNamespace(key) == table.Namespace || GetTableNamespace(key) == null) 1449if (_tableChild != table && table.Namespace == _tableChild.Namespace) 1463if (GetTableNamespace(keyref) == _tableChild.Namespace) { 1789column.Prefix = GetPrefix(table.Namespace); 2161if (!elem.RefName.IsEmpty || elem.QualifiedName.Namespace != table.Namespace) 2195if (column.Namespace == table.Namespace)
fx\src\data\System\Data\XmlToDatasetMap.cs (8)
66id.NamespaceURI = table.Namespace; 139string tableNamespace = nameTable.Get(table.Namespace ); 169string tableNamespace = nameTable.Get(table.Namespace); // Look ip table namespace 172tableNamespace = nameTable.Add(table.Namespace); // Add it 302string tableNamespace = nameTable.Get(r.ChildTable.Namespace ); 305tableNamespace = nameTable.Add(r.ChildTable.Namespace); 371string tableNamespace = nameTable.Get(r.ChildTable.Namespace ); 374tableNamespace = nameTable.Add(r.ChildTable.Namespace);
fx\src\data\System\NewXml\DataSetMappper.cs (2)
317object idTable = GetIdentity( table.EncodedTableName, table.Namespace ); 322object idTable = GetIdentity( table.EncodedTableName, table.Namespace );
fx\src\data\System\NewXml\XmlDataDocument.cs (2)
1225XmlBoundElement rowElement = new XmlBoundElement( string.Empty, table.EncodedTableName, table.Namespace, this ); 2820if (dt.Namespace != ds.Namespace) {