3 writes to _ds
System.Data.Common (3)
System\Data\xmlsaver.cs (3)
560_ds = ds; 572_ds = dt.DataSet; 947_ds = dt.DataSet;
56 references to _ds
System.Data.Common (56)
System\Data\xmlsaver.cs (56)
397if ((_ds != null) && (HaveExtendedProperties(_ds))) 591if (_ds != null) 593rootSchema.SetAttribute(Keywords.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName)); 599if (_ds != null) 601WriteSchemaRoot(rootSchema, _ds.Namespace); 611if (_ds != null) 613_namespaces[_ds.Namespace] = rootSchema; 623if (_ds != null) 625_namespaces[_ds.Namespace] = rootSchema; 626if (_ds.Namespace.Length == 0) 627_prefixes[_ds.Namespace] = null; 631rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, _ds.Namespace); 632_prefixes[_ds.Namespace] = "mstns"; 669AddXdoProperties(_ds, _dsElement); 689if (_ds != null) 691AddXdoProperties(_ds, _dsElement); 692AddExtendedProperties(_ds._extendedProperties, _dsElement); 699if (((_ds != null) && (_ds.Namespace == top[i].Namespace)) || string.IsNullOrEmpty(top[i].Namespace) || (_schFormat == SchemaFormat.Remoting)) 703if (((_ds != null) && (_ds.Namespace.Length != 0)) && string.IsNullOrEmpty(top[i].Namespace)) 739if ((_ds != null && _ds.Namespace == top[i].Namespace) || string.IsNullOrEmpty(top[i].Namespace) || (_schFormat == SchemaFormat.Remoting)) 814if (ns == ((_ds != null) ? _ds.Namespace : _dt.Namespace) || string.IsNullOrEmpty(ns)) 845if (ns == ((_ds != null) ? _ds.Namespace : _dt.Namespace) || string.IsNullOrEmpty(ns)) 892if (imp_ns == ((_ds != null) ? _ds.Namespace : _dt.Namespace)) 970if (_ds != null) 972_namespaces[_ds.Namespace] = rootSchema; 973if (_ds.Namespace.Length == 0) 975_prefixes[_ds.Namespace] = null; 980rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, _ds.Namespace); 981_prefixes[_ds.Namespace] = "mstns"; 1164if ((_ds == null) || (_ds.Tables.InternalIndexOf(rel.ParentKey.Table.TableName) == -3)) 1167if ((_ds == null) || (_ds.Tables.InternalIndexOf(rel.ChildKey.Table.TableName) == -3)) 1415tgNamespace = _ds!.Namespace; 1518if (col.Table.Namespace != _ds!.Namespace) 1737if (((table.DataSet == null) || (_ds != null && table.Namespace != _ds.Namespace)) && (_schFormat == SchemaFormat.Remoting)) 1752tgNamespace = (_ds != null) ? _ds.Namespace : ""; 1842if (_ds == null) 1845typeSchema = fUnqualified ? GetSchema(_ds.Namespace) : GetSchema(table.Namespace); 1989string xpathprefix = (_ds != null) ? (_ds.Namespace.Length != 0 ? Keywords.MSTNS_PREFIX : string.Empty) : string.Empty; 2012if ((_ds == null) || (_ds.Tables.InternalIndexOf(table.TableName) == -3)) 2094if ((_ds == null) || (_ds.Tables.InternalIndexOf(table.TableName) == -3)) 2140if ((_ds == null) || (_ds.Tables.InternalIndexOf(foreign.RelatedTable.TableName) == -3)) // if there is a conflicting name/namespace only