60 references to SchemaFormat
System.Data.Common (60)
System\Data\DataSet.cs (20)
1493
(new XmlTreeGen(
SchemaFormat
.Public)).Save(this, writer);
1514
(new XmlTreeGen(
SchemaFormat
.RemotingSkipSchema)).Save(this, writer);
1518
(new XmlTreeGen(
SchemaFormat
.Remoting)).Save(this, writer);
1524
(new XmlTreeGen(
SchemaFormat
.Remoting)).Save(table, writer);
1920
public void WriteXmlSchema(Stream? stream) => WriteXmlSchema(stream,
SchemaFormat
.Public, null);
1930
WriteXmlSchema(stream,
SchemaFormat
.Public, multipleTargetConverter);
1937
public void WriteXmlSchema(string fileName) => WriteXmlSchema(fileName,
SchemaFormat
.Public, null);
1947
WriteXmlSchema(fileName,
SchemaFormat
.Public, multipleTargetConverter);
1954
public void WriteXmlSchema(TextWriter? writer) => WriteXmlSchema(writer,
SchemaFormat
.Public, null);
1964
WriteXmlSchema(writer,
SchemaFormat
.Public, multipleTargetConverter);
1971
public void WriteXmlSchema(XmlWriter? writer) => WriteXmlSchema(writer,
SchemaFormat
.Public, null);
1981
WriteXmlSchema(writer,
SchemaFormat
.Public, multipleTargetConverter);
1986
private void WriteXmlSchema(string fileName,
SchemaFormat
schemaFormat, Converter<Type, string>? multipleTargetConverter)
2004
private void WriteXmlSchema(Stream? stream,
SchemaFormat
schemaFormat, Converter<Type, string>? multipleTargetConverter)
2019
private void WriteXmlSchema(TextWriter? writer,
SchemaFormat
schemaFormat, Converter<Type, string>? multipleTargetConverter)
2034
private void WriteXmlSchema(XmlWriter? writer,
SchemaFormat
schemaFormat, Converter<Type, string>? multipleTargetConverter)
2043
if (schemaFormat ==
SchemaFormat
.WebService &&
2047
treeGen = new XmlTreeGen(
SchemaFormat
.WebServiceSkipSchema);
3544
(new XmlTreeGen(
SchemaFormat
.WebService)).Save(ds, writer);
3605
WriteXmlSchema(writer,
SchemaFormat
.WebService, null);
System\Data\DataTable.cs (2)
5603
XmlTreeGen treeGen = new XmlTreeGen(
SchemaFormat
.Public);
6732
new XmlTreeGen(
SchemaFormat
.WebService).Save(this, writer);
System\Data\xmlsaver.cs (38)
43
private readonly
SchemaFormat
_schFormat =
SchemaFormat
.Public;
56
internal XmlTreeGen(
SchemaFormat
format)
609
if (_schFormat ==
SchemaFormat
.Remoting)
621
if (_schFormat !=
SchemaFormat
.Remoting)
644
if (_schFormat !=
SchemaFormat
.Remoting)
663
if (top.Length == 0 || _schFormat ==
SchemaFormat
.WebServiceSkipSchema || _schFormat ==
SchemaFormat
.RemotingSkipSchema)
699
if (((_ds != null) && (_ds.Namespace == top[i].Namespace)) || string.IsNullOrEmpty(top[i].Namespace) || (_schFormat ==
SchemaFormat
.Remoting))
739
if ((_ds != null && _ds.Namespace == top[i].Namespace) || string.IsNullOrEmpty(top[i].Namespace) || (_schFormat ==
SchemaFormat
.Remoting))
809
if (_schFormat !=
SchemaFormat
.Remoting && _schFormat !=
SchemaFormat
.RemotingSkipSchema)
820
if (_schFormat !=
SchemaFormat
.WebService && !isMultipleNamespaceAndStreamingWriter)
826
if (_schFormat !=
SchemaFormat
.WebService && isMultipleNamespaceAndStreamingWriter)
832
if (_schFormat !=
SchemaFormat
.WebService && isMultipleNamespaceAndStreamingWriter)
890
if (_schFormat !=
SchemaFormat
.WebService && !isMultipleNamespaceAndStreamingWriter)
901
if (_schFormat !=
SchemaFormat
.WebService && isMultipleNamespaceAndStreamingWriter)
953
if (_schFormat !=
SchemaFormat
.Remoting)
968
if (_schFormat !=
SchemaFormat
.Remoting)
1113
if (_schFormat ==
SchemaFormat
.Public)
1143
if (_schFormat ==
SchemaFormat
.Public)
1147
if (_schFormat ==
SchemaFormat
.WebServiceSkipSchema && xw.WriteState == WriteState.Element)
1263
string nSpace = (_schFormat !=
SchemaFormat
.Remoting) ? stNode.Namespace :
1273
type = stNode.ToNode(dc, _prefixes, (_schFormat ==
SchemaFormat
.Remoting));
1281
if (_schFormat !=
SchemaFormat
.Remoting)
1310
type = stNode.ToNode(dc, _prefixes, _schFormat ==
SchemaFormat
.Remoting);
1507
if (_schFormat ==
SchemaFormat
.Remoting)
1720
if (_schFormat !=
SchemaFormat
.Remoting)
1737
if (((table.DataSet == null) || (_ds != null && table.Namespace != _ds.Namespace)) && (_schFormat ==
SchemaFormat
.Remoting))
1837
if (!table.TypeName.IsEmpty && _schFormat !=
SchemaFormat
.Remoting)
1860
if (_schFormat !=
SchemaFormat
.Remoting)
1954
if ((childTable.Namespace == table.Namespace) || (childTable.Namespace.Length == 0) || _schFormat ==
SchemaFormat
.Remoting)
1990
if (_schFormat !=
SchemaFormat
.Remoting)
2041
if (_schFormat !=
SchemaFormat
.Remoting)
2109
if (_schFormat !=
SchemaFormat
.Remoting)
2193
if (_schFormat !=
SchemaFormat
.Remoting)
2891
new XmlTreeGen(
SchemaFormat
.Public).Save(_ds!, _xmlw);
2895
new XmlTreeGen(
SchemaFormat
.Public).Save(null, _dt!, _xmlw, _writeHierarchy);