60 references to SchemaFormat
System.Data.Common (60)
System\Data\DataSet.cs (20)
1480
(new XmlTreeGen(
SchemaFormat
.Public)).Save(this, writer);
1500
(new XmlTreeGen(
SchemaFormat
.RemotingSkipSchema)).Save(this, writer);
1504
(new XmlTreeGen(
SchemaFormat
.Remoting)).Save(this, writer);
1510
(new XmlTreeGen(
SchemaFormat
.Remoting)).Save(table, writer);
1895
public void WriteXmlSchema(Stream? stream) => WriteXmlSchema(stream,
SchemaFormat
.Public, null);
1904
WriteXmlSchema(stream,
SchemaFormat
.Public, multipleTargetConverter);
1910
public void WriteXmlSchema(string fileName) => WriteXmlSchema(fileName,
SchemaFormat
.Public, null);
1919
WriteXmlSchema(fileName,
SchemaFormat
.Public, multipleTargetConverter);
1925
public void WriteXmlSchema(TextWriter? writer) => WriteXmlSchema(writer,
SchemaFormat
.Public, null);
1934
WriteXmlSchema(writer,
SchemaFormat
.Public, multipleTargetConverter);
1940
public void WriteXmlSchema(XmlWriter? writer) => WriteXmlSchema(writer,
SchemaFormat
.Public, null);
1949
WriteXmlSchema(writer,
SchemaFormat
.Public, multipleTargetConverter);
1953
private void WriteXmlSchema(string fileName,
SchemaFormat
schemaFormat, Converter<Type, string>? multipleTargetConverter)
1970
private void WriteXmlSchema(Stream? stream,
SchemaFormat
schemaFormat, Converter<Type, string>? multipleTargetConverter)
1984
private void WriteXmlSchema(TextWriter? writer,
SchemaFormat
schemaFormat, Converter<Type, string>? multipleTargetConverter)
1998
private void WriteXmlSchema(XmlWriter? writer,
SchemaFormat
schemaFormat, Converter<Type, string>? multipleTargetConverter)
2007
if (schemaFormat ==
SchemaFormat
.WebService &&
2011
treeGen = new XmlTreeGen(
SchemaFormat
.WebServiceSkipSchema);
3483
(new XmlTreeGen(
SchemaFormat
.WebService)).Save(ds, writer);
3536
WriteXmlSchema(writer,
SchemaFormat
.WebService, null);
System\Data\DataTable.cs (2)
5576
XmlTreeGen treeGen = new XmlTreeGen(
SchemaFormat
.Public);
6683
new XmlTreeGen(
SchemaFormat
.WebService).Save(this, writer);
System\Data\xmlsaver.cs (38)
43
private readonly
SchemaFormat
_schFormat =
SchemaFormat
.Public;
56
internal XmlTreeGen(
SchemaFormat
format)
608
if (_schFormat ==
SchemaFormat
.Remoting)
620
if (_schFormat !=
SchemaFormat
.Remoting)
643
if (_schFormat !=
SchemaFormat
.Remoting)
662
if (top.Length == 0 || _schFormat ==
SchemaFormat
.WebServiceSkipSchema || _schFormat ==
SchemaFormat
.RemotingSkipSchema)
698
if (((_ds != null) && (_ds.Namespace == top[i].Namespace)) || string.IsNullOrEmpty(top[i].Namespace) || (_schFormat ==
SchemaFormat
.Remoting))
738
if ((_ds != null && _ds.Namespace == top[i].Namespace) || string.IsNullOrEmpty(top[i].Namespace) || (_schFormat ==
SchemaFormat
.Remoting))
808
if (_schFormat !=
SchemaFormat
.Remoting && _schFormat !=
SchemaFormat
.RemotingSkipSchema)
819
if (_schFormat !=
SchemaFormat
.WebService && !isMultipleNamespaceAndStreamingWriter)
825
if (_schFormat !=
SchemaFormat
.WebService && isMultipleNamespaceAndStreamingWriter)
831
if (_schFormat !=
SchemaFormat
.WebService && isMultipleNamespaceAndStreamingWriter)
889
if (_schFormat !=
SchemaFormat
.WebService && !isMultipleNamespaceAndStreamingWriter)
900
if (_schFormat !=
SchemaFormat
.WebService && isMultipleNamespaceAndStreamingWriter)
951
if (_schFormat !=
SchemaFormat
.Remoting)
966
if (_schFormat !=
SchemaFormat
.Remoting)
1109
if (_schFormat ==
SchemaFormat
.Public)
1136
if (_schFormat ==
SchemaFormat
.Public)
1140
if (_schFormat ==
SchemaFormat
.WebServiceSkipSchema && xw.WriteState == WriteState.Element)
1256
string nSpace = (_schFormat !=
SchemaFormat
.Remoting) ? stNode.Namespace :
1266
type = stNode.ToNode(dc, _prefixes, (_schFormat ==
SchemaFormat
.Remoting));
1274
if (_schFormat !=
SchemaFormat
.Remoting)
1303
type = stNode.ToNode(dc, _prefixes, _schFormat ==
SchemaFormat
.Remoting);
1499
if (_schFormat ==
SchemaFormat
.Remoting)
1711
if (_schFormat !=
SchemaFormat
.Remoting)
1727
if (((table.DataSet == null) || (_ds != null && table.Namespace != _ds.Namespace)) && (_schFormat ==
SchemaFormat
.Remoting))
1827
if (!table.TypeName.IsEmpty && _schFormat !=
SchemaFormat
.Remoting)
1850
if (_schFormat !=
SchemaFormat
.Remoting)
1944
if ((childTable.Namespace == table.Namespace) || (childTable.Namespace.Length == 0) || _schFormat ==
SchemaFormat
.Remoting)
1980
if (_schFormat !=
SchemaFormat
.Remoting)
2031
if (_schFormat !=
SchemaFormat
.Remoting)
2099
if (_schFormat !=
SchemaFormat
.Remoting)
2183
if (_schFormat !=
SchemaFormat
.Remoting)
2874
new XmlTreeGen(
SchemaFormat
.Public).Save(_ds!, _xmlw);
2878
new XmlTreeGen(
SchemaFormat
.Public).Save(null, _dt!, _xmlw, _writeHierarchy);