901 references to Keywords
System.Data.Common (901)
System\Data\Common\ObjectStorage.cs (6)
368
string? typeName = xmlReader.GetAttribute(
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS);
371
string? xsdTypeName = xmlReader.GetAttribute(
Keywords
.TYPE,
Keywords
.XSINS); // this xsd type: Base type polymorphism
377
if (xmlReader.LookupNamespace(_typename[0]) ==
Keywords
.XSDNS)
397
if (typeName ==
Keywords
.TYPEINSTANCE)
System\Data\Common\SqlUDTStorage.cs (4)
175
string? typeName = xmlReader.GetAttribute(
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS);
178
string? xsdTypeName = xmlReader.GetAttribute(
Keywords
.MSD_INSTANCETYPE,
Keywords
.XSINS); // this xsd type
System\Data\DataException.cs (2)
714
public static Exception MissingRefer(string name) => _Data(SR.Format(SR.Xml_MissingRefer,
Keywords
.REFER,
Keywords
.XSD_KEYREF, name));
System\Data\DataSet.cs (82)
199
string? attribValue = reader.GetAttribute(
Keywords
.MSD_SCHEMASERIALIZATIONMODE,
Keywords
.MSDNS);
200
if (string.Equals(attribValue,
Keywords
.MSD_EXCLUDESCHEMA, StringComparison.OrdinalIgnoreCase))
204
else if (string.Equals(attribValue,
Keywords
.MSD_INCLUDESCHEMA, StringComparison.OrdinalIgnoreCase))
1679
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
1686
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
1693
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
1695
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
1706
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
1723
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
1730
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
1737
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
1739
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
1801
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
1805
string? attribValue = reader.GetAttribute(
Keywords
.MSD_FRAGMENTCOUNT,
Keywords
.MSDNS); // this must not move the position
1813
while (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
2082
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
2091
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
2098
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
2105
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
2107
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
2120
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
2135
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
2147
if (!fSchemaFound && !fDataFound && reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
2156
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
2164
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
2166
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
2169
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
2434
if ((reader.LocalName !=
Keywords
.DIFFGRAM) && (reader.NamespaceURI !=
Keywords
.DFFNS))
2449
if ((reader.NamespaceURI !=
Keywords
.DFFNS) && (reader.NamespaceURI !=
Keywords
.MSDNS))
2473
if (((reader.LocalName ==
Keywords
.SQL_BEFORE) && (reader.NamespaceURI ==
Keywords
.DFFNS)) ||
2474
((reader.LocalName ==
Keywords
.MSD_ERRORS) && (reader.NamespaceURI ==
Keywords
.DFFNS)))
2599
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
2614
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
2629
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
2645
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
2647
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
2659
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
2674
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
2691
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
2707
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
2721
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
2722
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
3379
const string xsinill =
Keywords
.XSI + ":" +
Keywords
.XSI_NIL;
3391
const string UseDataSetSchemaOnlyString =
Keywords
.MSD + ":" +
Keywords
.USEDATASETSCHEMAONLY;
3403
throw ExceptionBuilder.InvalidAttributeValue(
Keywords
.USEDATASETSCHEMAONLY, useDataSetSchemaOnly!);
3407
const string udtIsWrappedString =
Keywords
.MSD + ":" +
Keywords
.UDTCOLUMNVALUEWRAPPED;
3419
throw ExceptionBuilder.InvalidAttributeValue(
Keywords
.UDTCOLUMNVALUEWRAPPED, _udtIsWrappedString!);
3445
any.Namespace =
Keywords
.DFFNS;
System\Data\DataTable.cs (55)
5680
if (reader.AttributeCount == 0 || (reader.LocalName ==
Keywords
.DIFFGRAM && reader.NamespaceURI ==
Keywords
.DFFNS))
5689
(reader.Prefix ==
Keywords
.XMLNS) &&
5690
(reader.NamespaceURI ==
Keywords
.XSD_XMLNS_NS))
5759
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
5779
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
5788
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
5796
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
5807
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
5820
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
5836
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
5848
if (!fSchemaFound && !fDataFound && reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
5857
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
5865
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
5876
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
5879
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
6009
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
6034
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
6049
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
6065
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
6076
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
6088
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
6105
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
6121
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
6136
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
6159
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
6170
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
6292
if ((reader.LocalName !=
Keywords
.DIFFGRAM) && (reader.NamespaceURI !=
Keywords
.DFFNS))
6307
if ((reader.NamespaceURI !=
Keywords
.DFFNS) && (reader.NamespaceURI !=
Keywords
.MSDNS))
6322
if (((reader.LocalName ==
Keywords
.SQL_BEFORE) && (reader.NamespaceURI ==
Keywords
.DFFNS)) ||
6323
((reader.LocalName ==
Keywords
.MSD_ERRORS) && (reader.NamespaceURI ==
Keywords
.DFFNS)))
6380
while (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
6657
any.Namespace =
Keywords
.DFFNS;
System\Data\SimpleType.cs (26)
59
if ((ancestor != null) && (ancestor.QualifiedName.Namespace !=
Keywords
.XSDNS))
66
if (content.BaseTypeName.Namespace ==
Keywords
.XSDNS)
122
string? tempStr = XSDSchema.GetMsdataAttribute(node,
Keywords
.TARGETNAMESPACE);
217
return
Keywords
.XSD_PREFIXCOLON + name;
230
XmlElement typeNode = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SIMPLETYPE,
Keywords
.XSDNS);
235
typeNode.SetAttribute(
Keywords
.NAME, _name);
238
typeNode.SetAttribute(
Keywords
.TARGETNAMESPACE,
Keywords
.MSDNS, Namespace);
241
XmlElement type = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_RESTRICTION,
Keywords
.XSDNS);
252
type.SetAttribute(
Keywords
.BASE, (prefix + ":" + _baseSimpleType.Name));
256
type.SetAttribute(
Keywords
.BASE, _baseSimpleType.Name);
261
type.SetAttribute(
Keywords
.BASE, _baseSimpleType.Name);
266
type.SetAttribute(
Keywords
.BASE, QualifiedName(_baseType!)); // has to be xs:SomePrimitiveType
271
type.SetAttribute(
Keywords
.BASE, (_baseSimpleType != null) ? _baseSimpleType.Name : QualifiedName(_baseType!));
277
constraint = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_LENGTH,
Keywords
.XSDNS);
278
constraint.SetAttribute(
Keywords
.VALUE, _length.ToString(CultureInfo.InvariantCulture));
283
constraint = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_MAXLENGTH,
Keywords
.XSDNS);
284
constraint.SetAttribute(
Keywords
.VALUE, _maxLength.ToString(CultureInfo.InvariantCulture));
System\Data\XDRSchema.cs (89)
36
_schemaName = schemaRoot.GetAttribute(
Keywords
.NAME);
40
Debug.Assert(FEqualIdentity(schemaRoot,
Keywords
.XDR_SCHEMA,
Keywords
.XDRNS), "Illegal node");
57
if (FEqualIdentity(child,
Keywords
.XDR_ELEMENTTYPE,
Keywords
.XDRNS))
74
Debug.Assert(FEqualIdentity(node,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS) ||
75
FEqualIdentity(node,
Keywords
.XDR_SCHEMA,
Keywords
.XDRNS) ||
76
FEqualIdentity(node,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS) ||
77
FEqualIdentity(node,
Keywords
.XDR_ELEMENTTYPE,
Keywords
.XDRNS),
80
if (FEqualIdentity(node,
Keywords
.XDR_ELEMENTTYPE,
Keywords
.XDRNS))
83
strType = node.GetAttribute(
Keywords
.TYPE);
85
if (FEqualIdentity(node,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS) ||
86
FEqualIdentity(node,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS))
97
if ((FEqualIdentity(vn,
Keywords
.XDR_ELEMENTTYPE,
Keywords
.XDRNS) &&
98
FEqualIdentity(node,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS)) ||
99
(FEqualIdentity(vn,
Keywords
.XDR_ATTRIBUTETYPE,
Keywords
.XDRNS) &&
100
FEqualIdentity(node,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS)))
102
if (vn is XmlElement && ((XmlElement)vn).GetAttribute(
Keywords
.NAME) == strType)
133
Debug.Assert(FEqualIdentity(node,
Keywords
.XDR_ELEMENTTYPE,
Keywords
.XDRNS), $"Invalid node type {node.LocalName}");
135
string value = node.GetAttribute(
Keywords
.CONTENT);
138
string type = node.GetAttribute(
Keywords
.DT_TYPE,
Keywords
.DTNS);
142
if (value ==
Keywords
.EMPTY || value ==
Keywords
.ELTONLY || value ==
Keywords
.ELEMENTONLY || value ==
Keywords
.MIXED)
146
if (value ==
Keywords
.TEXTONLY)
164
if (FEqualIdentity(n,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS) ||
165
FEqualIdentity(n,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS))
169
if (FEqualIdentity(node,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS))
184
Debug.Assert(FEqualIdentity(node,
Keywords
.XDR_ELEMENTTYPE,
Keywords
.XDRNS) ||
185
FEqualIdentity(node,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS), "Invalid node type");
191
string occurs = node.GetAttribute(
Keywords
.MINOCCURS);
199
occurs = node.GetAttribute(
Keywords
.MAXOCCURS);
315
throw ExceptionBuilder.MissingAttribute("type",
Keywords
.DT_VALUES);
323
if (FEqualIdentity(node,
Keywords
.XDR_ELEMENTTYPE,
Keywords
.XDRNS) ||
324
FEqualIdentity(node,
Keywords
.XDR_ATTRIBUTETYPE,
Keywords
.XDRNS))
326
instanceName = node.GetAttribute(
Keywords
.NAME);
329
throw ExceptionBuilder.MissingAttribute("Element",
Keywords
.NAME);
334
instanceName = node.GetAttribute(
Keywords
.TYPE);
336
throw ExceptionBuilder.MissingAttribute("Element",
Keywords
.TYPE);
345
Debug.Assert(FEqualIdentity(node,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS) ||
346
FEqualIdentity(node,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS), "Illegal node type");
361
string strRef = node.GetAttribute(
Keywords
.REF);
372
if (FEqualIdentity(node,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS))
377
if (FEqualIdentity(node,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS))
397
strType = node.GetAttribute(
Keywords
.TYPE);
401
strType = typeNode.GetAttribute(
Keywords
.DT_TYPE,
Keywords
.DTNS);
402
strValues = typeNode.GetAttribute(
Keywords
.DT_VALUES,
Keywords
.DTNS);
443
bool isAttribute = FEqualIdentity(node,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS);
448
strDefault = node.GetAttribute(
Keywords
.DEFAULT);
467
if (node.Attributes[i].NamespaceURI ==
Keywords
.MSDNS)
478
string targetNamespace = node.GetAttribute(
Keywords
.TARGETNAMESPACE);
496
string occurs = elNode.GetAttribute(
Keywords
.MINOCCURS);
504
occurs = elNode.GetAttribute(
Keywords
.MAXOCCURS);
508
int bZeroOrMore = string.Compare(occurs,
Keywords
.STAR, StringComparison.Ordinal);
515
throw ExceptionBuilder.AttributeValues(nameof(maxOccurs), "1",
Keywords
.STAR);
530
if (FEqualIdentity(n,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS))
540
if (FEqualIdentity(n,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS) ||
541
FEqualIdentity(n,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS))
System\Data\XmlDataLoader.cs (36)
235
return ns.Equals(
Keywords
.XSD_XMLNS_NS);
387
if (XMLSchema.GetBooleanAttribute(rowElement,
Keywords
.XSI_NIL,
Keywords
.XSINS, false) && string.IsNullOrEmpty(text))
421
if (XMLSchema.GetBooleanAttribute(e,
Keywords
.XSI_NIL,
Keywords
.XSINS, false) && string.IsNullOrEmpty(text))
502
if (parentElement.LocalName ==
Keywords
.XSD_SCHEMA && parentElement.NamespaceURI ==
Keywords
.XSDNS ||
503
parentElement.LocalName ==
Keywords
.SQL_SYNC && parentElement.NamespaceURI ==
Keywords
.UPDGNS ||
504
parentElement.LocalName ==
Keywords
.XDR_SCHEMA && parentElement.NamespaceURI ==
Keywords
.XDRNS)
566
_XSD_XMLNS_NS = nameTable.Add(
Keywords
.XSD_XMLNS_NS);
567
_XDR_SCHEMA = nameTable.Add(
Keywords
.XDR_SCHEMA);
568
_XDRNS = nameTable.Add(
Keywords
.XDRNS);
569
_SQL_SYNC = nameTable.Add(
Keywords
.SQL_SYNC);
570
_UPDGNS = nameTable.Add(
Keywords
.UPDGNS);
571
_XSD_SCHEMA = nameTable.Add(
Keywords
.XSD_SCHEMA);
572
_XSDNS = nameTable.Add(
Keywords
.XSDNS);
574
_DFFNS = nameTable.Add(
Keywords
.DFFNS);
575
_MSDNS = nameTable.Add(
Keywords
.MSDNS);
576
_DIFFID = nameTable.Add(
Keywords
.DIFFID);
577
_HASCHANGES = nameTable.Add(
Keywords
.HASCHANGES);
578
_ROWORDER = nameTable.Add(
Keywords
.ROWORDER);
910
if (_dataReader.NamespaceURI ==
Keywords
.DFFNS)
914
case
Keywords
.DIFFID: // Is it a diffgeam ID ?
917
case
Keywords
.HASCHANGES: // Has changes attribute ?
920
case
Keywords
.HASERRORS: // Has errors attribute ?
926
else if (_dataReader.NamespaceURI ==
Keywords
.MSDNS)
928
if (_dataReader.LocalName ==
Keywords
.ROWORDER)
1079
if ((hasChanges ==
Keywords
.MODIFIED) || hasErrors)
1147
xsiNilString = _dataReader.GetAttribute(
Keywords
.XSI_NIL,
Keywords
.XSINS);
1161
xsiTypeString = _dataReader.GetAttribute(
Keywords
.TYPE,
Keywords
.XSINS);
1162
typeName = _dataReader.GetAttribute(
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS);
System\Data\XMLDiffLoader.cs (41)
23
while (reader.LocalName ==
Keywords
.SQL_BEFORE && reader.NamespaceURI ==
Keywords
.DFFNS)
29
while (reader.LocalName ==
Keywords
.MSD_ERRORS && reader.NamespaceURI ==
Keywords
.DFFNS)
32
Debug.Assert(reader.LocalName ==
Keywords
.MSD_ERRORS && reader.NamespaceURI ==
Keywords
.DFFNS, "something fishy");
59
while (reader.LocalName ==
Keywords
.SQL_BEFORE && reader.NamespaceURI ==
Keywords
.DFFNS)
65
while (reader.LocalName ==
Keywords
.MSD_ERRORS && reader.NamespaceURI ==
Keywords
.DFFNS)
68
Debug.Assert(reader.LocalName ==
Keywords
.MSD_ERRORS && reader.NamespaceURI ==
Keywords
.DFFNS, "something fishy");
93
diffId = ssync.GetAttribute(
Keywords
.DIFFID,
Keywords
.DFFNS)!;
94
bool hasErrors = ssync.GetAttribute(
Keywords
.HASERRORS,
Keywords
.DFFNS) ==
Keywords
.TRUE;
145
diffId = ssync.GetAttribute(
Keywords
.DIFFID,
Keywords
.DFFNS)!;
146
bool hasErrors = ssync.GetAttribute(
Keywords
.HASERRORS,
Keywords
.DFFNS) ==
Keywords
.TRUE;
190
string diffId = ssync.GetAttribute(
Keywords
.DIFFID,
Keywords
.DFFNS)!;
192
string? rowError = ssync.GetAttribute(
Keywords
.MSD_ERROR,
Keywords
.DFFNS);
204
string colError = ssync.GetAttribute(
Keywords
.MSD_ERROR,
Keywords
.DFFNS)!;
231
string diffId = ssync.GetAttribute(
Keywords
.DIFFID,
Keywords
.DFFNS)!;
246
string? rowError = ssync.GetAttribute(
Keywords
.MSD_ERROR,
Keywords
.DFFNS);
259
string? colError = ssync.GetAttribute(
Keywords
.MSD_ERROR,
Keywords
.DFFNS);
310
value = row.GetAttribute(
Keywords
.ROWORDER,
Keywords
.MSDNS);
330
value = row.GetAttribute("hidden" + col.EncodedColumnName,
Keywords
.MSDNS);
387
bool isPolymorphism = (column.DataType == typeof(object) || (row.GetAttribute(
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS) != null) ||
388
(row.GetAttribute(
Keywords
.TYPE,
Keywords
.XSINS) != null));
System\Data\xmlsaver.cs (450)
98
s =
Keywords
.MSD_REL_PREFIX + s;
102
s =
Keywords
.MSD_FK_PREFIX + s;
104
node.SetAttribute(XmlConvert.EncodeLocalName(s),
Keywords
.MSPROPNS, v);
201
root.SetAttribute(
Keywords
.MSD_DATATYPE,
Keywords
.MSDNS, col.DataType.FullName);
203
else if ((dt.Length == 0) || bImplementsInullable || ((dt ==
Keywords
.XSD_ANYTYPE) && (col.XmlDataType !=
Keywords
.XSD_ANYTYPE)) || (col.DataType == typeof(DateTimeOffset)))
221
root.SetAttribute(pd.Name,
Keywords
.MSDNS, textValue);
266
return
Keywords
.XSD_ANYTYPE; //"integer";
274
return
Keywords
.XSD_ANYTYPE;
389
rootSchema.SetAttribute(
Keywords
.TARGETNAMESPACE, targetNamespace);
390
rootSchema.SetAttribute(
Keywords
.XMLNS_MSTNS, targetNamespace);
394
rootSchema.SetAttribute(
Keywords
.XMLNS, targetNamespace);
395
rootSchema.SetAttribute(
Keywords
.XMLNS_XSD,
Keywords
.XSDNS);
396
rootSchema.SetAttribute(
Keywords
.XMLNS_MSDATA,
Keywords
.MSDNS);
399
rootSchema.SetAttribute(
Keywords
.XMLNS_MSPROP,
Keywords
.MSPROPNS);
404
rootSchema.SetAttribute(
Keywords
.XSD_ATTRIBUTEFORMDEFAULT,
Keywords
.QUALIFIED);
405
rootSchema.SetAttribute(
Keywords
.XSD_ELEMENTFORMDEFAULT,
Keywords
.QUALIFIED);
550
_dsElement = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
585
XmlElement rootSchema = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SCHEMA,
Keywords
.XSDNS);
592
rootSchema.SetAttribute(
Keywords
.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName));
596
rootSchema.SetAttribute(
Keywords
.XSDID, XmlConvert.EncodeLocalName("NewDataSet"));
630
rootSchema.SetAttribute(
Keywords
.XMLNS_MSTNS, _ds.Namespace);
685
_constraintSeparator = xd.CreateElement(
Keywords
.XSD_PREFIX, "SHOULDNOTBEHERE",
Keywords
.XSDNS);
722
el.SetAttribute(
Keywords
.MINOCCURS, top[i].MinOccurs.ToString(CultureInfo.InvariantCulture));
726
el.SetAttribute(
Keywords
.MAXOCCURS,
Keywords
.ZERO_OR_MORE);
730
el.SetAttribute(
Keywords
.MAXOCCURS, top[i].MaxOccurs.ToString(CultureInfo.InvariantCulture));
737
XmlElement node = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
739
node.SetAttribute(
Keywords
.REF, top[i].EncodedTableName);
741
node.SetAttribute(
Keywords
.REF, ((string)_prefixes[top[i].Namespace]!) + ':' + top[i].EncodedTableName);
751
XmlElement node = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
752
node.SetAttribute(
Keywords
.REF, ((string)_prefixes[top[i].Namespace]!) + ':' + top[i].EncodedTableName);
792
nodeAnn = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ANNOTATION,
Keywords
.XSDNS);
795
nodeApp = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_APPINFO,
Keywords
.XSDNS);
817
XmlElement _import = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_IMPORT,
Keywords
.XSDNS);
818
_import.SetAttribute(
Keywords
.XSD_NAMESPACE, ns);
821
_import.SetAttribute(
Keywords
.XSD_SCHEMALOCATION, _fileName + "_" + _prefixes[ns] + ".xsd");
827
rootSchema.SetAttribute(
Keywords
.MSD_FRAGMENTCOUNT,
Keywords
.MSDNS, _namespaces.Count.ToString(CultureInfo.InvariantCulture));
886
XmlElement _import2 = _dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_IMPORT,
Keywords
.XSDNS);
887
_import2.SetAttribute(
Keywords
.XSD_NAMESPACE, imp_ns);
892
_import2.SetAttribute(
Keywords
.XSD_SCHEMALOCATION, _fileName + _fileExt); // for the dataset namespace don't append anything
894
_import2.SetAttribute(
Keywords
.XSD_SCHEMALOCATION, _fileName + "_" + prefix + ".xsd");
943
_dsElement = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
956
XmlElement rootSchema = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SCHEMA,
Keywords
.XSDNS);
962
_constraintSeparator = xd.CreateElement(
Keywords
.XSD_PREFIX, "SHOULDNOTBEHERE",
Keywords
.XSDNS);
978
rootSchema.SetAttribute(
Keywords
.XMLNS_MSTNS, _ds.Namespace);
992
rootSchema.SetAttribute(
Keywords
.XMLNS_MSTNS, dt.Namespace);
1022
_dsElement.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName(dataSet.DataSetName));
1023
_dsElement.SetAttribute(
Keywords
.MSD_ISDATASET,
Keywords
.MSDNS,
Keywords
.TRUE);
1025
_dsElement.SetAttribute(
Keywords
.MSD_MAINDATATABLE,
Keywords
.MSDNS, XmlConvert.EncodeLocalName(((dt!.Namespace.Length == 0) ? dt.TableName : (dt.Namespace + ":" + dt.TableName))));
1030
_dsElement.SetAttribute(
Keywords
.MSD_CASESENSITIVE,
Keywords
.MSDNS,
Keywords
.TRUE);
1034
_dsElement.SetAttribute(
Keywords
.MSD_LOCALE,
Keywords
.MSDNS, dataSet.Locale.ToString());
1038
_dsElement.SetAttribute(
Keywords
.MSD_USECURRENTLOCALE,
Keywords
.MSDNS,
Keywords
.TRUE);
1045
_dsElement.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName("NewDataSet"));
1046
_dsElement.SetAttribute(
Keywords
.MSD_ISDATASET,
Keywords
.MSDNS,
Keywords
.TRUE);
1047
_dsElement.SetAttribute(
Keywords
.MSD_MAINDATATABLE,
Keywords
.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0) ? dt.TableName : (dt.Namespace + ":" + dt.TableName))));
1052
_dsElement.SetAttribute(
Keywords
.MSD_CASESENSITIVE,
Keywords
.MSDNS,
Keywords
.TRUE);
1056
_dsElement.SetAttribute(
Keywords
.MSD_LOCALE,
Keywords
.MSDNS, dt.Locale.ToString());
1060
_dsElement.SetAttribute(
Keywords
.MSD_USECURRENTLOCALE,
Keywords
.MSDNS,
Keywords
.TRUE);
1065
XmlElement type = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_COMPLEXTYPE,
Keywords
.XSDNS);
1067
XmlElement compositor = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_CHOICE,
Keywords
.XSDNS);
1068
compositor.SetAttribute(
Keywords
.MINOCCURS,
Keywords
.ZERO_DIGIT);
1069
compositor.SetAttribute(
Keywords
.MAXOCCURS,
Keywords
.ZERO_OR_MORE);
1142
xw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_SCHEMASERIALIZATIONMODE,
Keywords
.MSDNS,
Keywords
.MSD_EXCLUDESCHEMA);
1149
XmlElement root = dc.CreateElement(
Keywords
.MSD,
Keywords
.MSD_RELATION,
Keywords
.MSDNS);
1152
root.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName(rel.RelationName));
1154
root.SetAttribute(
Keywords
.MSD_PARENT,
Keywords
.MSDNS, rel.ParentKey.Table.EncodedTableName);
1155
root.SetAttribute(
Keywords
.MSD_CHILD,
Keywords
.MSDNS, rel.ChildKey.Table.EncodedTableName);
1158
root.SetAttribute(
Keywords
.MSD_PARENTTABLENS,
Keywords
.MSDNS, rel.ParentKey.Table.Namespace);
1161
root.SetAttribute(
Keywords
.MSD_CHILDTABLENS,
Keywords
.MSDNS, rel.ChildKey.Table.Namespace);
1173
builder.Append(
Keywords
.MSD_KEYFIELDSEP).Append(key[i].EncodedColumnName);
1177
root.SetAttribute(
Keywords
.MSD_PARENTKEY,
Keywords
.MSDNS, text);
1194
builder.Append(
Keywords
.MSD_KEYFIELDSEP).Append(key[i].EncodedColumnName);
1198
root.SetAttribute(
Keywords
.MSD_CHILDKEY,
Keywords
.MSDNS, text);
1207
if (n is XmlElement e && e.GetAttribute(
Keywords
.NAME) == name)
1220
schemaEl = _dc!.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SCHEMA,
Keywords
.XSDNS);
1224
string prefix =
Keywords
.APP + Convert.ToString(++_prefixCount, CultureInfo.InvariantCulture);
1238
string keyword =
Keywords
.TYPE;
1240
keyword =
Keywords
.BASE;
1329
typeName =
Keywords
.XSD_ANYTYPE;
1343
root.SetAttribute(
Keywords
.MSD_DATATYPE,
Keywords
.MSDNS, col.DataType.FullName);
1345
else if ((dt.Length == 0) || col.ImplementsINullable || ((dt ==
Keywords
.XSD_ANYTYPE) && (col.XmlDataType !=
Keywords
.XSD_ANYTYPE)))
1357
root.SetAttribute("ReadOnly",
Keywords
.MSDNS,
Keywords
.TRUE);
1360
root.SetAttribute("Expression",
Keywords
.MSDNS, col.Expression);
1364
root.SetAttribute("AutoIncrement",
Keywords
.MSDNS,
Keywords
.TRUE);
1368
root.SetAttribute("AutoIncrementSeed",
Keywords
.MSDNS, col.AutoIncrementSeed.ToString(CultureInfo.InvariantCulture));
1371
root.SetAttribute("AutoIncrementStep",
Keywords
.MSDNS, col.AutoIncrementStep.ToString(CultureInfo.InvariantCulture));
1374
root.SetAttribute("Caption",
Keywords
.MSDNS, col.Caption);
1377
root.SetAttribute("Prefix",
Keywords
.MSDNS, col.Prefix);
1381
root.SetAttribute("DateTimeMode",
Keywords
.MSDNS, col.DateTimeMode.ToString());
1425
string refString = (col.ColumnMapping != MappingType.Element) ?
Keywords
.XSD_ATTRIBUTE :
Keywords
.XSD_ELEMENT;
1426
root = dc.CreateElement(
Keywords
.XSD_PREFIX, refString,
Keywords
.XSDNS);
1429
root.SetAttribute(
Keywords
.NAME, col.EncodedColumnName);
1438
root.SetAttribute(
Keywords
.FORM,
Keywords
.UNQUALIFIED);
1453
root.SetAttribute(
Keywords
.MSD_ALLOWDBNULL,
Keywords
.MSDNS,
Keywords
.FALSE);
1457
root.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, (bool)(col.DefaultValue) ?
Keywords
.TRUE :
Keywords
.FALSE);
1461
root.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, col.ConvertObjectToXml(col.DefaultValue));
1473
root.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, (bool)(col.DefaultValue) ?
Keywords
.TRUE :
Keywords
.FALSE);
1477
root.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, col.ConvertObjectToXml(col.DefaultValue));
1484
root.SetAttribute(
Keywords
.DEFAULT, (bool)(col.DefaultValue) ?
Keywords
.TRUE :
Keywords
.FALSE);
1490
root.SetAttribute(
Keywords
.DEFAULT, col.ConvertObjectToXml(col.DefaultValue));
1500
root.SetAttribute(
Keywords
.TARGETNAMESPACE,
Keywords
.MSDNS, col.Namespace);
1508
root = _dc.CreateElement(
Keywords
.XSD_PREFIX, refString,
Keywords
.XSDNS);
1509
root.SetAttribute(
Keywords
.REF, _prefixes[col.Namespace] + ":" + col.EncodedColumnName);
1523
root.SetAttribute(
Keywords
.USE,
Keywords
.REQUIRED);
1528
root.SetAttribute(
Keywords
.USE,
Keywords
.PROHIBITED);
1532
root.SetAttribute(
Keywords
.MINOCCURS, minOccurs.ToString(CultureInfo.InvariantCulture));
1535
root.SetAttribute(
Keywords
.MSD_ORDINAL,
Keywords
.MSDNS, col.Ordinal.ToString(CultureInfo.InvariantCulture));
1562
if (FindTypeNode(schNode, el.GetAttribute(
Keywords
.NAME)) == null)
1578
if (XSDSchema.FEqualIdentity(child,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS) ||
1579
XSDSchema.FEqualIdentity(child,
Keywords
.XSD_ATTRIBUTE,
Keywords
.XSDNS) ||
1580
XSDSchema.FEqualIdentity(child,
Keywords
.XSD_COMPLEXTYPE,
Keywords
.XSDNS) ||
1581
XSDSchema.FEqualIdentity(child,
Keywords
.XSD_SIMPLETYPE,
Keywords
.XSDNS))
1583
if (child.GetAttribute(
Keywords
.NAME) == strType)
1723
XmlElement root = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
1728
root.SetAttribute(
Keywords
.TARGETNAMESPACE,
Keywords
.MSDNS, table.Namespace);
1731
root.SetAttribute(
Keywords
.NAME, table.EncodedTableName);
1767
root.SetAttribute(
Keywords
.FORM,
Keywords
.UNQUALIFIED);
1775
root.SetAttribute(
Keywords
.MSD_CASESENSITIVE,
Keywords
.MSDNS, table.CaseSensitive.ToString());
1779
root.SetAttribute(
Keywords
.MSD_LOCALE,
Keywords
.MSDNS, table.Locale.ToString());
1817
_typeName =
Keywords
.XSD_ANYTYPE;
1820
root.SetAttribute(
Keywords
.TYPE, XSDSchema.QualifiedName(_typeName));
1825
XmlElement type = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_COMPLEXTYPE,
Keywords
.XSDNS);
1841
type.SetAttribute(
Keywords
.NAME, table.TypeName.Name);
1851
root.SetAttribute(
Keywords
.TYPE, NewDiffgramGen.QualifiedName((string)_prefixes[table.TypeName.Namespace]!, table.TypeName.Name));
1860
XmlElement sc = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SIMPLECONTENT,
Keywords
.XSDNS);
1869
root.SetAttribute(
Keywords
.XSD_NILLABLE, string.Empty,
Keywords
.TRUE);
1873
sc.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, colTxt.ConvertObjectToXml(colTxt.DefaultValue));
1876
sc.SetAttribute(
Keywords
.MSD_COLUMNNAME,
Keywords
.MSDNS, colTxt.ColumnName);
1877
sc.SetAttribute(
Keywords
.MSD_ORDINAL,
Keywords
.MSDNS, colTxt.Ordinal.ToString(CultureInfo.InvariantCulture));
1880
XmlElement ext = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_EXTENSION,
Keywords
.XSDNS);
1886
compositor = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SEQUENCE,
Keywords
.XSDNS);
1926
NestedTable = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
1928
NestedTable.SetAttribute(
Keywords
.REF, table.EncodedTableName);
1932
NestedTable = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
1933
NestedTable.SetAttribute(
Keywords
.REF, childTable.EncodedTableName);
1940
NestedTable.SetAttribute(
Keywords
.MINOCCURS, "0");
1941
NestedTable.SetAttribute(
Keywords
.MAXOCCURS,
Keywords
.ZERO_OR_MORE);
1952
NestedTable = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
1953
NestedTable.SetAttribute(
Keywords
.REF, ((string)_prefixes[childTable.Namespace]!) + ':' + childTable.EncodedTableName);
1960
XmlElement nodeAnn = _dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ANNOTATION,
Keywords
.XSDNS);
1963
XmlElement nodeApp = _dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_APPINFO,
Keywords
.XSDNS);
1979
string xpathprefix = (_ds != null) ? (_ds.Namespace.Length != 0 ?
Keywords
.MSTNS_PREFIX : string.Empty) : string.Empty;
2000
constraint = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_UNIQUE,
Keywords
.XSDNS);
2003
constraint.SetAttribute(
Keywords
.MSD_TABLENS,
Keywords
.MSDNS, table.Namespace);
2005
constraint.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName(unique.SchemaName));
2008
constraint.SetAttribute(
Keywords
.MSD_CONSTRAINTNAME,
Keywords
.MSDNS, unique.ConstraintName);
2013
selector = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SELECTOR,
Keywords
.XSDNS);
2014
selector.SetAttribute(
Keywords
.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName);
2021
constraint.SetAttribute(
Keywords
.MSD_PRIMARYKEY,
Keywords
.MSDNS,
Keywords
.TRUE);
2048
field = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_FIELD,
Keywords
.XSDNS);
2049
field.SetAttribute(
Keywords
.XSD_XPATH, encodedName.ToString());
2081
constraint = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_KEY,
Keywords
.XSDNS);
2082
constraint.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName));
2085
constraint.SetAttribute(
Keywords
.MSD_TABLENS,
Keywords
.MSDNS, table.Namespace);
2087
selector = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SELECTOR,
Keywords
.XSDNS);
2088
selector.SetAttribute(
Keywords
.XSD_XPATH, ".//" + xpathprefix + foreign.RelatedTable.EncodedTableName);
2116
field = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_FIELD,
Keywords
.XSDNS);
2117
field.SetAttribute(
Keywords
.XSD_XPATH, encodedName.ToString());
2126
constraint = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_KEYREF,
Keywords
.XSDNS);
2128
constraint.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName));
2131
constraint.SetAttribute(
Keywords
.MSD_TABLENS,
Keywords
.MSDNS, foreign.Table!.Namespace);
2134
constraint.SetAttribute(
Keywords
.REFER, XmlConvert.EncodeLocalName(foreign.SchemaName));
2136
constraint.SetAttribute(
Keywords
.REFER, XmlConvert.EncodeLocalName(_constraint.SchemaName));
2141
constraint.SetAttribute(
Keywords
.MSD_CONSTRAINTNAME,
Keywords
.MSDNS, foreign.ConstraintName);
2145
constraint.SetAttribute(
Keywords
.MSD_CONSTRAINTONLY,
Keywords
.MSDNS,
Keywords
.TRUE);
2150
constraint.SetAttribute(
Keywords
.MSD_ISNESTED,
Keywords
.MSDNS,
Keywords
.TRUE);
2155
constraint.SetAttribute(
Keywords
.MSD_RELATIONNAME,
Keywords
.MSDNS, XmlConvert.EncodeLocalName(rel.RelationName));
2159
selector = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SELECTOR,
Keywords
.XSDNS);
2160
selector.SetAttribute(
Keywords
.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName);
2165
constraint.SetAttribute(
Keywords
.MSD_ACCEPTREJECTRULE,
Keywords
.MSDNS,
2169
constraint.SetAttribute(
Keywords
.MSD_UPDATERULE,
Keywords
.MSDNS, TranslateRule(foreign.UpdateRule));
2172
constraint.SetAttribute(
Keywords
.MSD_DELETERULE,
Keywords
.MSDNS, TranslateRule(foreign.DeleteRule));
2200
field = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_FIELD,
Keywords
.XSDNS);
2201
field.SetAttribute(
Keywords
.XSD_XPATH, encodedName.ToString());
2235
root.SetAttribute(
Keywords
.MSD_DATATYPE,
Keywords
.MSDNS, result);
2347
_xmlw.WriteStartElement(
Keywords
.DFF,
Keywords
.DIFFGRAM,
Keywords
.DFFNS);
2348
_xmlw.WriteAttributeString(
Keywords
.XMLNS,
Keywords
.MSD, null,
Keywords
.MSDNS);
2433
_xmlw.WriteStartElement(
Keywords
.DFF,
Keywords
.MSD_ERRORS,
Keywords
.DFFNS);
2437
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFID,
Keywords
.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture));
2438
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.MSD_ERROR,
Keywords
.DFFNS, row.RowError);
2457
_xmlw.WriteStartElement(
Keywords
.DFF,
Keywords
.MSD_ERRORS,
Keywords
.DFFNS);
2462
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFID,
Keywords
.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture));
2468
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.MSD_ERROR,
Keywords
.DFFNS, error);
2488
_xmlw.WriteStartElement(
Keywords
.DFF,
Keywords
.SQL_BEFORE,
Keywords
.DFFNS);
2511
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFID,
Keywords
.DFFNS, rowIDString);
2514
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.HASERRORS,
Keywords
.DFFNS,
Keywords
.TRUE);
2517
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFPID,
Keywords
.DFFNS, parentId);
2519
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.ROWORDER,
Keywords
.MSDNS, _rowsOrder[row]!.ToString());
2544
_xmlw.WriteAttributeString(
Keywords
.XSI,
Keywords
.XSI_NIL,
Keywords
.XSINS,
Keywords
.TRUE);
2556
_xmlw.WriteAttributeString(
Keywords
.MSD, "hidden" + col.EncodedColumnName,
Keywords
.MSDNS, value);
2580
_xmlw.WriteAttributeString(
Keywords
.XML,
Keywords
.SPACE,
Keywords
.XML_XMLNS,
Keywords
.PRESERVE);
2594
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS, DataStorage.GetQualifiedName(valuesType));
2620
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS, valuesType.FullName);
2624
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS,
Keywords
.TYPEINSTANCE);
2628
string xsdTypeName =
Keywords
.XSD_PREFIXCOLON + XmlTreeGen.XmlDataTypeName(valuesType);
2629
_xmlw.WriteAttributeString(
Keywords
.XSI,
Keywords
.TYPE,
Keywords
.XSINS, xsdTypeName);
2630
_xmlw.WriteAttributeString(
Keywords
.XSD_PREFIX,
Keywords
.XMLNS,
Keywords
.XSDNS, xsdTypeName);
2798
_xmlw.WriteStartElement(prefix,
Keywords
.DOCUMENTELEMENT, (_dt!.Namespace == null) ? "" : _dt.Namespace);
2851
_xmlw.WriteStartElement(prefix,
Keywords
.DOCUMENTELEMENT, _dt!.Namespace);
2856
_xmlw.WriteStartElement(prefix,
Keywords
.DOCUMENTELEMENT, _ds.Namespace);
2865
_xmlw.WriteAttributeString(
Keywords
.XMLNS,
Keywords
.XSI,
Keywords
.XSD_XMLNS_NS,
Keywords
.XSINS);
2933
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFID,
Keywords
.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture));
2935
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.ROWORDER,
Keywords
.MSDNS, _rowsOrder![row]!.ToString());
2939
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.HASCHANGES,
Keywords
.DFFNS,
Keywords
.INSERTED);
2943
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.HASCHANGES,
Keywords
.DFFNS,
Keywords
.MODIFIED);
2948
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.HASERRORS,
Keywords
.DFFNS,
Keywords
.TRUE);
2977
_xmlw.WriteAttributeString(
Keywords
.MSD, "hidden" + col.EncodedColumnName,
Keywords
.MSDNS, col.ConvertObjectToXml(value));
2991
_xmlw.WriteAttributeString(
Keywords
.XSI,
Keywords
.XSI_NIL,
Keywords
.XSINS,
Keywords
.TRUE);
3013
_xmlw.WriteAttributeString(
Keywords
.XML,
Keywords
.SPACE,
Keywords
.XML_XMLNS,
Keywords
.PRESERVE);
3025
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS, DataStorage.GetQualifiedName(valuesType));
3049
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS, valuesType.FullName);
3053
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS,
Keywords
.TYPEINSTANCE);
3057
string xsdTypeName =
Keywords
.XSD_PREFIXCOLON + XmlTreeGen.XmlDataTypeName(valuesType);
3058
_xmlw.WriteAttributeString(
Keywords
.XSI,
Keywords
.TYPE,
Keywords
.XSINS, xsdTypeName);
3059
_xmlw.WriteAttributeString(
Keywords
.XSD_PREFIX,
Keywords
.XMLNS,
Keywords
.XSDNS, xsdTypeName);
System\Data\XMLSchema.cs (100)
31
if (attrs[i].NamespaceURI ==
Keywords
.MSDNS)
87
if ((value ==
Keywords
.TRUE) || (value ==
Keywords
.ONE_DIGIT))
91
if ((value ==
Keywords
.FALSE) || (value ==
Keywords
.ZERO_DIGIT))
209
MSDATATargetNamespace = XSDSchema.GetMsdataAttribute((XmlSchemaType)item,
Keywords
.TARGETNAMESPACE);
253
return
Keywords
.XSD_PREFIXCOLON + name;
267
if (attrs[i].NamespaceURI ==
Keywords
.MSDNS)
327
if (attrs[i].NamespaceURI ==
Keywords
.MSPROPNS)
339
if (propName.StartsWith(
Keywords
.MSD_FK_PREFIX, StringComparison.Ordinal))
344
if ((instance is DataRelation) && (propName.StartsWith(
Keywords
.MSD_REL_PREFIX, StringComparison.Ordinal)))
348
else if ((instance is DataRelation) && (propName.StartsWith(
Keywords
.MSD_FK_PREFIX, StringComparison.Ordinal)))
368
if (attrs[i].NamespaceURI ==
Keywords
.MSDNS)
387
if (nodeAttributes[i].LocalName == ln && nodeAttributes[i].NamespaceURI ==
Keywords
.MSDNS)
398
if (attrs[i].NamespaceURI ==
Keywords
.MSPROPNS)
442
strName = XmlConvert.DecodeName(node.GetAttribute(
Keywords
.NAME));
449
parentName = node.GetAttribute(
Keywords
.MSD_PARENT,
Keywords
.MSDNS);
454
childName = node.GetAttribute(
Keywords
.MSD_CHILD,
Keywords
.MSDNS);
459
value = node.GetAttribute(
Keywords
.MSD_PARENTKEY,
Keywords
.MSDNS);
463
parentNames = value.TrimEnd(null).Split(new char[] {
Keywords
.MSD_KEYFIELDSEP,
Keywords
.MSD_KEYFIELDOLDSEP });
464
value = node.GetAttribute(
Keywords
.MSD_CHILDKEY,
Keywords
.MSDNS);
468
childNames = value.TrimEnd(null).Split(new char[] {
Keywords
.MSD_KEYFIELDSEP,
Keywords
.MSD_KEYFIELDOLDSEP });
477
string parentNs = node.GetAttribute(
Keywords
.MSD_PARENTTABLENS,
Keywords
.MSDNS);
478
string childNs = node.GetAttribute(
Keywords
.MSD_CHILDTABLENS,
Keywords
.MSDNS);
575
if (GetBooleanAttribute(XmlElement,
Keywords
.MSD_ISDATASET, /*default:*/ false))
587
if (GetBooleanAttribute(XmlElement,
Keywords
.MSD_ISDATASET, /*default:*/ false))
593
if (!GetBooleanAttribute(node,
Keywords
.MSD_ISDATASET, /*default:*/ true))
713
string mainName = GetStringAttribute(_dsElement,
Keywords
.MSD_MAINDATATABLE, "");
866
if (FEqualIdentity(relations[i],
Keywords
.MSD_RELATION,
Keywords
.MSDNS))
1067
if (ccExtension.BaseTypeName.Namespace !=
Keywords
.XSDNS)
1215
if ((value ==
Keywords
.TRUE) || (value ==
Keywords
.ONE_DIGIT))
1219
if ((value ==
Keywords
.FALSE) || (value ==
Keywords
.ZERO_DIGIT))
1283
string? tableNs = GetMsdataAttribute(keyref,
Keywords
.MSD_TABLENS);
1305
if (GetBooleanAttribute(keyref,
Keywords
.MSD_CONSTRAINTONLY, /*default:*/ false))
1322
string relName = XmlConvert.DecodeName(GetStringAttribute(keyref,
Keywords
.MSD_RELATIONNAME, keyref.Name!));
1355
if (GetBooleanAttribute(keyref,
Keywords
.MSD_ISNESTED, /*default:*/ false))
1361
string? acceptRejectRule = GetMsdataAttribute(keyref,
Keywords
.MSD_ACCEPTREJECTRULE);
1362
string? updateRule = GetMsdataAttribute(keyref,
Keywords
.MSD_UPDATERULE);
1363
string? deleteRule = GetMsdataAttribute(keyref,
Keywords
.MSD_DELETERULE);
1387
throw ExceptionBuilder.MissingAttribute(
Keywords
.NAME);
1394
string? tableNs = GetMsdataAttribute(keyNode,
Keywords
.MSD_TABLENS);
1403
bool fPrimaryKey = GetBooleanAttribute(keyNode,
Keywords
.MSD_PRIMARYKEY, /*default:*/ false);
1584
string? value = GetStringAttribute(typeNode,
Keywords
.MSD_CASESENSITIVE, "");
1587
value = GetStringAttribute(node,
Keywords
.MSD_CASESENSITIVE, "");
1591
if ((value ==
Keywords
.TRUE) || (value == "True"))
1593
if ((value ==
Keywords
.FALSE) || (value == "False"))
1597
value = GetMsdataAttribute(node,
Keywords
.MSD_LOCALE);
1683
bool isNested = GetBooleanAttribute(keyref,
Keywords
.MSD_ISNESTED, /*default:*/ false);
1930
if (_typeNs ==
Keywords
.XSDNS)
1959
if (!string.IsNullOrEmpty(typeNode.QualifiedName.Name) && typeNode.QualifiedName.Namespace !=
Keywords
.XSDNS)
1968
if ((ancestor != null) && (ancestor.QualifiedName.Namespace !=
Keywords
.XSDNS))
2026
if (attrs[i].LocalName ==
Keywords
.MSD_ALLOWDBNULL && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
2027
if (attrs[i].Value ==
Keywords
.FALSE)
2029
if (attrs[i].LocalName ==
Keywords
.MSD_ORDINAL && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
2031
if (attrs[i].LocalName ==
Keywords
.MSD_DEFAULTVALUE && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
2047
if (XSDSchema.GetMsdataAttribute(typeNode,
Keywords
.TARGETNAMESPACE) != null)
2139
if (attrs[i].LocalName ==
Keywords
.MSD_ALLOWDBNULL && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
2140
if (attrs[i].Value ==
Keywords
.FALSE)
2142
if (attrs[i].LocalName ==
Keywords
.MSD_ORDINAL && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
2144
if (attrs[i].LocalName ==
Keywords
.MSD_DEFAULTVALUE && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
2205
if (attr.SchemaTypeName.Namespace !=
Keywords
.XSDNS) // it is UD Simple Type, can it be?
2215
if (!string.IsNullOrEmpty(node.QualifiedName.Name) && node.QualifiedName.Namespace !=
Keywords
.XSDNS)
2287
if (XSDSchema.GetMsdataAttribute(typeNode!,
Keywords
.TARGETNAMESPACE) != null)
2317
column.AllowDBNull = GetBooleanAttribute(attr,
Keywords
.MSD_ALLOWDBNULL, true);
2318
string? defValue = GetMsdataAttribute(attr,
Keywords
.MSD_DEFAULTVALUE);
2332
string? strDefault = (attrib.Use == XmlSchemaUse.Required) ? GetMsdataAttribute(attr,
Keywords
.MSD_DEFAULTVALUE) : attr.DefaultValue;
2379
if (!string.IsNullOrEmpty(((XmlSchemaSimpleType)typeNode).Name) && ((XmlSchemaSimpleType)typeNode).QualifiedName.Namespace !=
Keywords
.XSDNS)
2386
simpleTypeNode = (xsdType.XmlBaseType != null && xsdType.XmlBaseType.Namespace !=
Keywords
.XSDNS) ?
2392
simpleTypeNode = (xsdType.XmlBaseType != null && xsdType.XmlBaseType.Namespace !=
Keywords
.XSDNS) ?
2413
if (string.IsNullOrEmpty(XSDSchema.GetMsdataAttribute(elem,
Keywords
.MSD_DATATYPE)))
2473
if (XSDSchema.GetMsdataAttribute(typeNode!,
Keywords
.TARGETNAMESPACE) != null)
2517
string tmp = GetStringAttribute(elem,
Keywords
.MSD_ORDINAL, (-1).ToString(CultureInfo.CurrentCulture));
2556
string? value = GetMsdataAttribute(node,
Keywords
.MSD_LOCALE);
2572
if (GetBooleanAttribute(node,
Keywords
.MSD_USECURRENTLOCALE, false))
2584
value = GetMsdataAttribute(node,
Keywords
.MSD_DATASETNAME);
2590
value = GetMsdataAttribute(node,
Keywords
.MSD_DATASETNAMESPACE);
2697
bool isNested = GetBooleanAttribute(keyref,
Keywords
.MSD_ISNESTED, /*default:*/ false);
2774
return GetMsdataAttribute(key,
Keywords
.MSD_TABLENS);
2805
if (attrib.LocalName ==
Keywords
.MSD_DATATYPE &&
2806
attrib.Prefix ==
Keywords
.MSD &&
2807
attrib.NamespaceURI ==
Keywords
.MSDNS)
2876
(NamespaceURI ==
Keywords
.XML_XMLNS && LocalName != "lang"))
2900
(NamespaceURI ==
Keywords
.XML_XMLNS && LocalName != "lang"))
System\Xml\XmlBoundElement.cs (1)
318
w.WriteAttributeString("xmlns", "xsi", "http://www.w3.org/2000/xmlns/",
Keywords
.XSINS);
System\Xml\XmlDataDocument.cs (9)
746
XmlAttribute attr = CreateAttribute(XSI,
Keywords
.XSI_NIL,
Keywords
.XSINS);
747
attr.Value =
Keywords
.TRUE;
1475
attr = CreateAttribute(XSI,
Keywords
.XSI_NIL,
Keywords
.XSINS);
1476
attr.Value =
Keywords
.TRUE;
1482
attr.Value =
Keywords
.TRUE;
1490
attr.Value =
Keywords
.FALSE;
1560
attr.Value =
Keywords
.FALSE;