3 writes to _ds
System.Data.Common (3)
System\Data\xmlsaver.cs (3)
559_ds = ds; 571_ds = dt.DataSet; 945_ds = dt.DataSet;
56 references to _ds
System.Data.Common (56)
System\Data\xmlsaver.cs (56)
397if ((_ds != null) && (HaveExtendedProperties(_ds))) 590if (_ds != null) 592rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName)); 598if (_ds != null) 600WriteSchemaRoot(rootSchema, _ds.Namespace); 610if (_ds != null) 612_namespaces[_ds.Namespace] = rootSchema; 622if (_ds != null) 624_namespaces[_ds.Namespace] = rootSchema; 625if (_ds.Namespace.Length == 0) 626_prefixes[_ds.Namespace] = null; 630rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, _ds.Namespace); 631_prefixes[_ds.Namespace] = "mstns"; 668AddXdoProperties(_ds, _dsElement); 688if (_ds != null) 690AddXdoProperties(_ds, _dsElement); 691AddExtendedProperties(_ds._extendedProperties, _dsElement); 698if (((_ds != null) && (_ds.Namespace == top[i].Namespace)) || string.IsNullOrEmpty(top[i].Namespace) || (_schFormat == SchemaFormat.Remoting)) 702if (((_ds != null) && (_ds.Namespace.Length != 0)) && string.IsNullOrEmpty(top[i].Namespace)) 738if ((_ds != null && _ds.Namespace == top[i].Namespace) || string.IsNullOrEmpty(top[i].Namespace) || (_schFormat == SchemaFormat.Remoting)) 813if (ns == ((_ds != null) ? _ds.Namespace : _dt.Namespace) || string.IsNullOrEmpty(ns)) 844if (ns == ((_ds != null) ? _ds.Namespace : _dt.Namespace) || string.IsNullOrEmpty(ns)) 891if (imp_ns == ((_ds != null) ? _ds.Namespace : _dt.Namespace)) 968if (_ds != null) 970_namespaces[_ds.Namespace] = rootSchema; 971if (_ds.Namespace.Length == 0) 973_prefixes[_ds.Namespace] = null; 978rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, _ds.Namespace); 979_prefixes[_ds.Namespace] = "mstns"; 1157if ((_ds == null) || (_ds.Tables.InternalIndexOf(rel.ParentKey.Table.TableName) == -3)) 1160if ((_ds == null) || (_ds.Tables.InternalIndexOf(rel.ChildKey.Table.TableName) == -3)) 1408tgNamespace = _ds!.Namespace; 1510if (col.Table.Namespace != _ds!.Namespace) 1727if (((table.DataSet == null) || (_ds != null && table.Namespace != _ds.Namespace)) && (_schFormat == SchemaFormat.Remoting)) 1742tgNamespace = (_ds != null) ? _ds.Namespace : ""; 1832if (_ds == null) 1835typeSchema = fUnqualified ? GetSchema(_ds.Namespace) : GetSchema(table.Namespace); 1979string xpathprefix = (_ds != null) ? (_ds.Namespace.Length != 0 ? Keywords.MSTNS_PREFIX : string.Empty) : string.Empty; 2002if ((_ds == null) || (_ds.Tables.InternalIndexOf(table.TableName) == -3)) 2084if ((_ds == null) || (_ds.Tables.InternalIndexOf(table.TableName) == -3)) 2130if ((_ds == null) || (_ds.Tables.InternalIndexOf(foreign.RelatedTable.TableName) == -3)) // if there is a conflicting name/namespace only