2 writes to _ds
System.Data.Common (2)
System\Data\xmlsaver.cs (2)
2679_ds = ds; 2698_ds = dt.DataSet;
22 references to _ds
System.Data.Common (22)
System\Data\xmlsaver.cs (22)
2789Debug.Assert(_ds != null || _dt != null); 2795string prefix = (_ds != null) ? ((_ds.Namespace.Length == 0) ? "" : _ds.Prefix) : ((_dt!.Namespace.Length == 0) ? "" : _dt.Prefix); 2797if (_ds == null || string.IsNullOrEmpty(_ds.DataSetName)) 2800_xmlw.WriteStartElement(prefix, XmlConvert.EncodeLocalName(_ds.DataSetName), _ds.Namespace); 2832Debug.Assert(_ds != null || _dt != null); 2839string prefix = (_ds != null) ? ((_ds.Namespace.Length == 0) ? "" : _ds.Prefix) : ((_dt!.Namespace.Length == 0) ? "" : _dt.Prefix); 2841if (!writeSchema && _ds != null && _ds._fTopLevelTable && countTopTable == 1) 2843if (_ds.TopLevelTables()[0].Rows.Count == 1) 2849if (_ds == null) 2855if (string.IsNullOrEmpty(_ds.DataSetName)) 2856_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, _ds.Namespace); 2858_xmlw.WriteStartElement(prefix, XmlConvert.EncodeLocalName(_ds.DataSetName), _ds.Namespace); 2874new XmlTreeGen(SchemaFormat.Public).Save(_ds!, _xmlw); 3077if (_ds != null)