901 references to Keywords
System.Data.Common (901)
System\Data\Common\ObjectStorage.cs (6)
370
string? typeName = xmlReader.GetAttribute(
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS);
373
string? xsdTypeName = xmlReader.GetAttribute(
Keywords
.TYPE,
Keywords
.XSINS); // this xsd type: Base type polymorphism
379
if (xmlReader.LookupNamespace(_typename[0]) ==
Keywords
.XSDNS)
399
if (typeName ==
Keywords
.TYPEINSTANCE)
System\Data\Common\SqlUDTStorage.cs (4)
177
string? typeName = xmlReader.GetAttribute(
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS);
180
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)
206
string? attribValue = reader.GetAttribute(
Keywords
.MSD_SCHEMASERIALIZATIONMODE,
Keywords
.MSDNS);
207
if (string.Equals(attribValue,
Keywords
.MSD_EXCLUDESCHEMA, StringComparison.OrdinalIgnoreCase))
211
else if (string.Equals(attribValue,
Keywords
.MSD_INCLUDESCHEMA, StringComparison.OrdinalIgnoreCase))
1699
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
1706
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
1713
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
1715
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
1726
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
1743
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
1750
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
1757
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
1759
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
1822
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
1826
string? attribValue = reader.GetAttribute(
Keywords
.MSD_FRAGMENTCOUNT,
Keywords
.MSDNS); // this must not move the position
1834
while (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
2120
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
2129
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
2136
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
2143
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
2145
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
2158
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
2173
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
2185
if (!fSchemaFound && !fDataFound && reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
2194
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
2202
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
2204
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
2207
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
2477
if ((reader.LocalName !=
Keywords
.DIFFGRAM) && (reader.NamespaceURI !=
Keywords
.DFFNS))
2492
if ((reader.NamespaceURI !=
Keywords
.DFFNS) && (reader.NamespaceURI !=
Keywords
.MSDNS))
2516
if (((reader.LocalName ==
Keywords
.SQL_BEFORE) && (reader.NamespaceURI ==
Keywords
.DFFNS)) ||
2517
((reader.LocalName ==
Keywords
.MSD_ERRORS) && (reader.NamespaceURI ==
Keywords
.DFFNS)))
2644
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
2659
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
2674
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
2690
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
2692
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
2704
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
2719
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
2736
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
2752
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
2766
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
2767
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
3436
const string xsinill =
Keywords
.XSI + ":" +
Keywords
.XSI_NIL;
3448
const string UseDataSetSchemaOnlyString =
Keywords
.MSD + ":" +
Keywords
.USEDATASETSCHEMAONLY;
3460
throw ExceptionBuilder.InvalidAttributeValue(
Keywords
.USEDATASETSCHEMAONLY, useDataSetSchemaOnly!);
3464
const string udtIsWrappedString =
Keywords
.MSD + ":" +
Keywords
.UDTCOLUMNVALUEWRAPPED;
3476
throw ExceptionBuilder.InvalidAttributeValue(
Keywords
.UDTCOLUMNVALUEWRAPPED, _udtIsWrappedString!);
3502
any.Namespace =
Keywords
.DFFNS;
System\Data\DataTable.cs (55)
5713
if (reader.AttributeCount == 0 || (reader.LocalName ==
Keywords
.DIFFGRAM && reader.NamespaceURI ==
Keywords
.DFFNS))
5722
(reader.Prefix ==
Keywords
.XMLNS) &&
5723
(reader.NamespaceURI ==
Keywords
.XSD_XMLNS_NS))
5793
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
5813
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
5822
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
5830
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
5841
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
5854
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
5870
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
5882
if (!fSchemaFound && !fDataFound && reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
5891
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
5899
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
5910
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
5913
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
6044
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
6069
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
6084
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
6100
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
6111
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
6123
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
6140
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS)
6156
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
6171
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS))
6194
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
6205
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
6328
if ((reader.LocalName !=
Keywords
.DIFFGRAM) && (reader.NamespaceURI !=
Keywords
.DFFNS))
6343
if ((reader.NamespaceURI !=
Keywords
.DFFNS) && (reader.NamespaceURI !=
Keywords
.MSDNS))
6358
if (((reader.LocalName ==
Keywords
.SQL_BEFORE) && (reader.NamespaceURI ==
Keywords
.DFFNS)) ||
6359
((reader.LocalName ==
Keywords
.MSD_ERRORS) && (reader.NamespaceURI ==
Keywords
.DFFNS)))
6417
while (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS)
6699
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);
389
if (XMLSchema.GetBooleanAttribute(rowElement,
Keywords
.XSI_NIL,
Keywords
.XSINS, false) && string.IsNullOrEmpty(text))
423
if (XMLSchema.GetBooleanAttribute(e,
Keywords
.XSI_NIL,
Keywords
.XSINS, false) && string.IsNullOrEmpty(text))
505
if (parentElement.LocalName ==
Keywords
.XSD_SCHEMA && parentElement.NamespaceURI ==
Keywords
.XSDNS ||
506
parentElement.LocalName ==
Keywords
.SQL_SYNC && parentElement.NamespaceURI ==
Keywords
.UPDGNS ||
507
parentElement.LocalName ==
Keywords
.XDR_SCHEMA && parentElement.NamespaceURI ==
Keywords
.XDRNS)
570
_XSD_XMLNS_NS = nameTable.Add(
Keywords
.XSD_XMLNS_NS);
571
_XDR_SCHEMA = nameTable.Add(
Keywords
.XDR_SCHEMA);
572
_XDRNS = nameTable.Add(
Keywords
.XDRNS);
573
_SQL_SYNC = nameTable.Add(
Keywords
.SQL_SYNC);
574
_UPDGNS = nameTable.Add(
Keywords
.UPDGNS);
575
_XSD_SCHEMA = nameTable.Add(
Keywords
.XSD_SCHEMA);
576
_XSDNS = nameTable.Add(
Keywords
.XSDNS);
578
_DFFNS = nameTable.Add(
Keywords
.DFFNS);
579
_MSDNS = nameTable.Add(
Keywords
.MSDNS);
580
_DIFFID = nameTable.Add(
Keywords
.DIFFID);
581
_HASCHANGES = nameTable.Add(
Keywords
.HASCHANGES);
582
_ROWORDER = nameTable.Add(
Keywords
.ROWORDER);
917
if (_dataReader.NamespaceURI ==
Keywords
.DFFNS)
921
case
Keywords
.DIFFID: // Is it a diffgeam ID ?
924
case
Keywords
.HASCHANGES: // Has changes attribute ?
927
case
Keywords
.HASERRORS: // Has errors attribute ?
933
else if (_dataReader.NamespaceURI ==
Keywords
.MSDNS)
935
if (_dataReader.LocalName ==
Keywords
.ROWORDER)
1086
if ((hasChanges ==
Keywords
.MODIFIED) || hasErrors)
1155
xsiNilString = _dataReader.GetAttribute(
Keywords
.XSI_NIL,
Keywords
.XSINS);
1169
xsiTypeString = _dataReader.GetAttribute(
Keywords
.TYPE,
Keywords
.XSINS);
1170
typeName = _dataReader.GetAttribute(
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS);
System\Data\XMLDiffLoader.cs (41)
24
while (reader.LocalName ==
Keywords
.SQL_BEFORE && reader.NamespaceURI ==
Keywords
.DFFNS)
30
while (reader.LocalName ==
Keywords
.MSD_ERRORS && reader.NamespaceURI ==
Keywords
.DFFNS)
33
Debug.Assert(reader.LocalName ==
Keywords
.MSD_ERRORS && reader.NamespaceURI ==
Keywords
.DFFNS, "something fishy");
61
while (reader.LocalName ==
Keywords
.SQL_BEFORE && reader.NamespaceURI ==
Keywords
.DFFNS)
67
while (reader.LocalName ==
Keywords
.MSD_ERRORS && reader.NamespaceURI ==
Keywords
.DFFNS)
70
Debug.Assert(reader.LocalName ==
Keywords
.MSD_ERRORS && reader.NamespaceURI ==
Keywords
.DFFNS, "something fishy");
96
diffId = ssync.GetAttribute(
Keywords
.DIFFID,
Keywords
.DFFNS)!;
97
bool hasErrors = ssync.GetAttribute(
Keywords
.HASERRORS,
Keywords
.DFFNS) ==
Keywords
.TRUE;
149
diffId = ssync.GetAttribute(
Keywords
.DIFFID,
Keywords
.DFFNS)!;
150
bool hasErrors = ssync.GetAttribute(
Keywords
.HASERRORS,
Keywords
.DFFNS) ==
Keywords
.TRUE;
194
string diffId = ssync.GetAttribute(
Keywords
.DIFFID,
Keywords
.DFFNS)!;
196
string? rowError = ssync.GetAttribute(
Keywords
.MSD_ERROR,
Keywords
.DFFNS);
208
string colError = ssync.GetAttribute(
Keywords
.MSD_ERROR,
Keywords
.DFFNS)!;
235
string diffId = ssync.GetAttribute(
Keywords
.DIFFID,
Keywords
.DFFNS)!;
250
string? rowError = ssync.GetAttribute(
Keywords
.MSD_ERROR,
Keywords
.DFFNS);
263
string? colError = ssync.GetAttribute(
Keywords
.MSD_ERROR,
Keywords
.DFFNS);
315
value = row.GetAttribute(
Keywords
.ROWORDER,
Keywords
.MSDNS);
335
value = row.GetAttribute("hidden" + col.EncodedColumnName,
Keywords
.MSDNS);
392
bool isPolymorphism = (column.DataType == typeof(object) || (row.GetAttribute(
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS) != null) ||
393
(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);
551
_dsElement = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
586
XmlElement rootSchema = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SCHEMA,
Keywords
.XSDNS);
593
rootSchema.SetAttribute(
Keywords
.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName));
597
rootSchema.SetAttribute(
Keywords
.XSDID, XmlConvert.EncodeLocalName("NewDataSet"));
631
rootSchema.SetAttribute(
Keywords
.XMLNS_MSTNS, _ds.Namespace);
686
_constraintSeparator = xd.CreateElement(
Keywords
.XSD_PREFIX, "SHOULDNOTBEHERE",
Keywords
.XSDNS);
723
el.SetAttribute(
Keywords
.MINOCCURS, top[i].MinOccurs.ToString(CultureInfo.InvariantCulture));
727
el.SetAttribute(
Keywords
.MAXOCCURS,
Keywords
.ZERO_OR_MORE);
731
el.SetAttribute(
Keywords
.MAXOCCURS, top[i].MaxOccurs.ToString(CultureInfo.InvariantCulture));
738
XmlElement node = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
740
node.SetAttribute(
Keywords
.REF, top[i].EncodedTableName);
742
node.SetAttribute(
Keywords
.REF, ((string)_prefixes[top[i].Namespace]!) + ':' + top[i].EncodedTableName);
752
XmlElement node = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
753
node.SetAttribute(
Keywords
.REF, ((string)_prefixes[top[i].Namespace]!) + ':' + top[i].EncodedTableName);
793
nodeAnn = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ANNOTATION,
Keywords
.XSDNS);
796
nodeApp = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_APPINFO,
Keywords
.XSDNS);
818
XmlElement _import = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_IMPORT,
Keywords
.XSDNS);
819
_import.SetAttribute(
Keywords
.XSD_NAMESPACE, ns);
822
_import.SetAttribute(
Keywords
.XSD_SCHEMALOCATION, _fileName + "_" + _prefixes[ns] + ".xsd");
828
rootSchema.SetAttribute(
Keywords
.MSD_FRAGMENTCOUNT,
Keywords
.MSDNS, _namespaces.Count.ToString(CultureInfo.InvariantCulture));
887
XmlElement _import2 = _dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_IMPORT,
Keywords
.XSDNS);
888
_import2.SetAttribute(
Keywords
.XSD_NAMESPACE, imp_ns);
893
_import2.SetAttribute(
Keywords
.XSD_SCHEMALOCATION, _fileName + _fileExt); // for the dataset namespace don't append anything
895
_import2.SetAttribute(
Keywords
.XSD_SCHEMALOCATION, _fileName + "_" + prefix + ".xsd");
945
_dsElement = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
958
XmlElement rootSchema = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SCHEMA,
Keywords
.XSDNS);
964
_constraintSeparator = xd.CreateElement(
Keywords
.XSD_PREFIX, "SHOULDNOTBEHERE",
Keywords
.XSDNS);
980
rootSchema.SetAttribute(
Keywords
.XMLNS_MSTNS, _ds.Namespace);
994
rootSchema.SetAttribute(
Keywords
.XMLNS_MSTNS, dt.Namespace);
1024
_dsElement.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName(dataSet.DataSetName));
1025
_dsElement.SetAttribute(
Keywords
.MSD_ISDATASET,
Keywords
.MSDNS,
Keywords
.TRUE);
1027
_dsElement.SetAttribute(
Keywords
.MSD_MAINDATATABLE,
Keywords
.MSDNS, XmlConvert.EncodeLocalName(((dt!.Namespace.Length == 0) ? dt.TableName : (dt.Namespace + ":" + dt.TableName))));
1032
_dsElement.SetAttribute(
Keywords
.MSD_CASESENSITIVE,
Keywords
.MSDNS,
Keywords
.TRUE);
1036
_dsElement.SetAttribute(
Keywords
.MSD_LOCALE,
Keywords
.MSDNS, dataSet.Locale.ToString());
1040
_dsElement.SetAttribute(
Keywords
.MSD_USECURRENTLOCALE,
Keywords
.MSDNS,
Keywords
.TRUE);
1047
_dsElement.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName("NewDataSet"));
1048
_dsElement.SetAttribute(
Keywords
.MSD_ISDATASET,
Keywords
.MSDNS,
Keywords
.TRUE);
1049
_dsElement.SetAttribute(
Keywords
.MSD_MAINDATATABLE,
Keywords
.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0) ? dt.TableName : (dt.Namespace + ":" + dt.TableName))));
1054
_dsElement.SetAttribute(
Keywords
.MSD_CASESENSITIVE,
Keywords
.MSDNS,
Keywords
.TRUE);
1058
_dsElement.SetAttribute(
Keywords
.MSD_LOCALE,
Keywords
.MSDNS, dt.Locale.ToString());
1062
_dsElement.SetAttribute(
Keywords
.MSD_USECURRENTLOCALE,
Keywords
.MSDNS,
Keywords
.TRUE);
1067
XmlElement type = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_COMPLEXTYPE,
Keywords
.XSDNS);
1069
XmlElement compositor = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_CHOICE,
Keywords
.XSDNS);
1070
compositor.SetAttribute(
Keywords
.MINOCCURS,
Keywords
.ZERO_DIGIT);
1071
compositor.SetAttribute(
Keywords
.MAXOCCURS,
Keywords
.ZERO_OR_MORE);
1149
xw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_SCHEMASERIALIZATIONMODE,
Keywords
.MSDNS,
Keywords
.MSD_EXCLUDESCHEMA);
1156
XmlElement root = dc.CreateElement(
Keywords
.MSD,
Keywords
.MSD_RELATION,
Keywords
.MSDNS);
1159
root.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName(rel.RelationName));
1161
root.SetAttribute(
Keywords
.MSD_PARENT,
Keywords
.MSDNS, rel.ParentKey.Table.EncodedTableName);
1162
root.SetAttribute(
Keywords
.MSD_CHILD,
Keywords
.MSDNS, rel.ChildKey.Table.EncodedTableName);
1165
root.SetAttribute(
Keywords
.MSD_PARENTTABLENS,
Keywords
.MSDNS, rel.ParentKey.Table.Namespace);
1168
root.SetAttribute(
Keywords
.MSD_CHILDTABLENS,
Keywords
.MSDNS, rel.ChildKey.Table.Namespace);
1180
builder.Append(
Keywords
.MSD_KEYFIELDSEP).Append(key[i].EncodedColumnName);
1184
root.SetAttribute(
Keywords
.MSD_PARENTKEY,
Keywords
.MSDNS, text);
1201
builder.Append(
Keywords
.MSD_KEYFIELDSEP).Append(key[i].EncodedColumnName);
1205
root.SetAttribute(
Keywords
.MSD_CHILDKEY,
Keywords
.MSDNS, text);
1214
if (n is XmlElement e && e.GetAttribute(
Keywords
.NAME) == name)
1227
schemaEl = _dc!.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SCHEMA,
Keywords
.XSDNS);
1231
string prefix =
Keywords
.APP + Convert.ToString(++_prefixCount, CultureInfo.InvariantCulture);
1245
string keyword =
Keywords
.TYPE;
1247
keyword =
Keywords
.BASE;
1336
typeName =
Keywords
.XSD_ANYTYPE;
1350
root.SetAttribute(
Keywords
.MSD_DATATYPE,
Keywords
.MSDNS, col.DataType.FullName);
1352
else if ((dt.Length == 0) || col.ImplementsINullable || ((dt ==
Keywords
.XSD_ANYTYPE) && (col.XmlDataType !=
Keywords
.XSD_ANYTYPE)))
1364
root.SetAttribute("ReadOnly",
Keywords
.MSDNS,
Keywords
.TRUE);
1367
root.SetAttribute("Expression",
Keywords
.MSDNS, col.Expression);
1371
root.SetAttribute("AutoIncrement",
Keywords
.MSDNS,
Keywords
.TRUE);
1375
root.SetAttribute("AutoIncrementSeed",
Keywords
.MSDNS, col.AutoIncrementSeed.ToString(CultureInfo.InvariantCulture));
1378
root.SetAttribute("AutoIncrementStep",
Keywords
.MSDNS, col.AutoIncrementStep.ToString(CultureInfo.InvariantCulture));
1381
root.SetAttribute("Caption",
Keywords
.MSDNS, col.Caption);
1384
root.SetAttribute("Prefix",
Keywords
.MSDNS, col.Prefix);
1388
root.SetAttribute("DateTimeMode",
Keywords
.MSDNS, col.DateTimeMode.ToString());
1433
string refString = (col.ColumnMapping != MappingType.Element) ?
Keywords
.XSD_ATTRIBUTE :
Keywords
.XSD_ELEMENT;
1434
root = dc.CreateElement(
Keywords
.XSD_PREFIX, refString,
Keywords
.XSDNS);
1437
root.SetAttribute(
Keywords
.NAME, col.EncodedColumnName);
1446
root.SetAttribute(
Keywords
.FORM,
Keywords
.UNQUALIFIED);
1461
root.SetAttribute(
Keywords
.MSD_ALLOWDBNULL,
Keywords
.MSDNS,
Keywords
.FALSE);
1465
root.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, (bool)(col.DefaultValue) ?
Keywords
.TRUE :
Keywords
.FALSE);
1469
root.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, col.ConvertObjectToXml(col.DefaultValue));
1481
root.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, (bool)(col.DefaultValue) ?
Keywords
.TRUE :
Keywords
.FALSE);
1485
root.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, col.ConvertObjectToXml(col.DefaultValue));
1492
root.SetAttribute(
Keywords
.DEFAULT, (bool)(col.DefaultValue) ?
Keywords
.TRUE :
Keywords
.FALSE);
1498
root.SetAttribute(
Keywords
.DEFAULT, col.ConvertObjectToXml(col.DefaultValue));
1508
root.SetAttribute(
Keywords
.TARGETNAMESPACE,
Keywords
.MSDNS, col.Namespace);
1516
root = _dc.CreateElement(
Keywords
.XSD_PREFIX, refString,
Keywords
.XSDNS);
1517
root.SetAttribute(
Keywords
.REF, _prefixes[col.Namespace] + ":" + col.EncodedColumnName);
1531
root.SetAttribute(
Keywords
.USE,
Keywords
.REQUIRED);
1536
root.SetAttribute(
Keywords
.USE,
Keywords
.PROHIBITED);
1540
root.SetAttribute(
Keywords
.MINOCCURS, minOccurs.ToString(CultureInfo.InvariantCulture));
1543
root.SetAttribute(
Keywords
.MSD_ORDINAL,
Keywords
.MSDNS, col.Ordinal.ToString(CultureInfo.InvariantCulture));
1570
if (FindTypeNode(schNode, el.GetAttribute(
Keywords
.NAME)) == null)
1586
if (XSDSchema.FEqualIdentity(child,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS) ||
1587
XSDSchema.FEqualIdentity(child,
Keywords
.XSD_ATTRIBUTE,
Keywords
.XSDNS) ||
1588
XSDSchema.FEqualIdentity(child,
Keywords
.XSD_COMPLEXTYPE,
Keywords
.XSDNS) ||
1589
XSDSchema.FEqualIdentity(child,
Keywords
.XSD_SIMPLETYPE,
Keywords
.XSDNS))
1591
if (child.GetAttribute(
Keywords
.NAME) == strType)
1733
XmlElement root = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
1738
root.SetAttribute(
Keywords
.TARGETNAMESPACE,
Keywords
.MSDNS, table.Namespace);
1741
root.SetAttribute(
Keywords
.NAME, table.EncodedTableName);
1777
root.SetAttribute(
Keywords
.FORM,
Keywords
.UNQUALIFIED);
1785
root.SetAttribute(
Keywords
.MSD_CASESENSITIVE,
Keywords
.MSDNS, table.CaseSensitive.ToString());
1789
root.SetAttribute(
Keywords
.MSD_LOCALE,
Keywords
.MSDNS, table.Locale.ToString());
1827
_typeName =
Keywords
.XSD_ANYTYPE;
1830
root.SetAttribute(
Keywords
.TYPE, XSDSchema.QualifiedName(_typeName));
1835
XmlElement type = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_COMPLEXTYPE,
Keywords
.XSDNS);
1851
type.SetAttribute(
Keywords
.NAME, table.TypeName.Name);
1861
root.SetAttribute(
Keywords
.TYPE, NewDiffgramGen.QualifiedName((string)_prefixes[table.TypeName.Namespace]!, table.TypeName.Name));
1870
XmlElement sc = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SIMPLECONTENT,
Keywords
.XSDNS);
1879
root.SetAttribute(
Keywords
.XSD_NILLABLE, string.Empty,
Keywords
.TRUE);
1883
sc.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, colTxt.ConvertObjectToXml(colTxt.DefaultValue));
1886
sc.SetAttribute(
Keywords
.MSD_COLUMNNAME,
Keywords
.MSDNS, colTxt.ColumnName);
1887
sc.SetAttribute(
Keywords
.MSD_ORDINAL,
Keywords
.MSDNS, colTxt.Ordinal.ToString(CultureInfo.InvariantCulture));
1890
XmlElement ext = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_EXTENSION,
Keywords
.XSDNS);
1896
compositor = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SEQUENCE,
Keywords
.XSDNS);
1936
NestedTable = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
1938
NestedTable.SetAttribute(
Keywords
.REF, table.EncodedTableName);
1942
NestedTable = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
1943
NestedTable.SetAttribute(
Keywords
.REF, childTable.EncodedTableName);
1950
NestedTable.SetAttribute(
Keywords
.MINOCCURS, "0");
1951
NestedTable.SetAttribute(
Keywords
.MAXOCCURS,
Keywords
.ZERO_OR_MORE);
1962
NestedTable = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
1963
NestedTable.SetAttribute(
Keywords
.REF, ((string)_prefixes[childTable.Namespace]!) + ':' + childTable.EncodedTableName);
1970
XmlElement nodeAnn = _dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ANNOTATION,
Keywords
.XSDNS);
1973
XmlElement nodeApp = _dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_APPINFO,
Keywords
.XSDNS);
1989
string xpathprefix = (_ds != null) ? (_ds.Namespace.Length != 0 ?
Keywords
.MSTNS_PREFIX : string.Empty) : string.Empty;
2010
constraint = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_UNIQUE,
Keywords
.XSDNS);
2013
constraint.SetAttribute(
Keywords
.MSD_TABLENS,
Keywords
.MSDNS, table.Namespace);
2015
constraint.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName(unique.SchemaName));
2018
constraint.SetAttribute(
Keywords
.MSD_CONSTRAINTNAME,
Keywords
.MSDNS, unique.ConstraintName);
2023
selector = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SELECTOR,
Keywords
.XSDNS);
2024
selector.SetAttribute(
Keywords
.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName);
2031
constraint.SetAttribute(
Keywords
.MSD_PRIMARYKEY,
Keywords
.MSDNS,
Keywords
.TRUE);
2058
field = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_FIELD,
Keywords
.XSDNS);
2059
field.SetAttribute(
Keywords
.XSD_XPATH, encodedName.ToString());
2091
constraint = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_KEY,
Keywords
.XSDNS);
2092
constraint.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName));
2095
constraint.SetAttribute(
Keywords
.MSD_TABLENS,
Keywords
.MSDNS, table.Namespace);
2097
selector = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SELECTOR,
Keywords
.XSDNS);
2098
selector.SetAttribute(
Keywords
.XSD_XPATH, ".//" + xpathprefix + foreign.RelatedTable.EncodedTableName);
2126
field = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_FIELD,
Keywords
.XSDNS);
2127
field.SetAttribute(
Keywords
.XSD_XPATH, encodedName.ToString());
2136
constraint = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_KEYREF,
Keywords
.XSDNS);
2138
constraint.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName(foreign.SchemaName));
2141
constraint.SetAttribute(
Keywords
.MSD_TABLENS,
Keywords
.MSDNS, foreign.Table!.Namespace);
2144
constraint.SetAttribute(
Keywords
.REFER, XmlConvert.EncodeLocalName(foreign.SchemaName));
2146
constraint.SetAttribute(
Keywords
.REFER, XmlConvert.EncodeLocalName(_constraint.SchemaName));
2151
constraint.SetAttribute(
Keywords
.MSD_CONSTRAINTNAME,
Keywords
.MSDNS, foreign.ConstraintName);
2155
constraint.SetAttribute(
Keywords
.MSD_CONSTRAINTONLY,
Keywords
.MSDNS,
Keywords
.TRUE);
2160
constraint.SetAttribute(
Keywords
.MSD_ISNESTED,
Keywords
.MSDNS,
Keywords
.TRUE);
2165
constraint.SetAttribute(
Keywords
.MSD_RELATIONNAME,
Keywords
.MSDNS, XmlConvert.EncodeLocalName(rel.RelationName));
2169
selector = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SELECTOR,
Keywords
.XSDNS);
2170
selector.SetAttribute(
Keywords
.XSD_XPATH, ".//" + xpathprefix + table.EncodedTableName);
2175
constraint.SetAttribute(
Keywords
.MSD_ACCEPTREJECTRULE,
Keywords
.MSDNS,
2179
constraint.SetAttribute(
Keywords
.MSD_UPDATERULE,
Keywords
.MSDNS, TranslateRule(foreign.UpdateRule));
2182
constraint.SetAttribute(
Keywords
.MSD_DELETERULE,
Keywords
.MSDNS, TranslateRule(foreign.DeleteRule));
2210
field = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_FIELD,
Keywords
.XSDNS);
2211
field.SetAttribute(
Keywords
.XSD_XPATH, encodedName.ToString());
2245
root.SetAttribute(
Keywords
.MSD_DATATYPE,
Keywords
.MSDNS, result);
2359
_xmlw.WriteStartElement(
Keywords
.DFF,
Keywords
.DIFFGRAM,
Keywords
.DFFNS);
2360
_xmlw.WriteAttributeString(
Keywords
.XMLNS,
Keywords
.MSD, null,
Keywords
.MSDNS);
2446
_xmlw.WriteStartElement(
Keywords
.DFF,
Keywords
.MSD_ERRORS,
Keywords
.DFFNS);
2450
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFID,
Keywords
.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture));
2451
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.MSD_ERROR,
Keywords
.DFFNS, row.RowError);
2470
_xmlw.WriteStartElement(
Keywords
.DFF,
Keywords
.MSD_ERRORS,
Keywords
.DFFNS);
2475
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFID,
Keywords
.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture));
2481
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.MSD_ERROR,
Keywords
.DFFNS, error);
2502
_xmlw.WriteStartElement(
Keywords
.DFF,
Keywords
.SQL_BEFORE,
Keywords
.DFFNS);
2525
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFID,
Keywords
.DFFNS, rowIDString);
2528
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.HASERRORS,
Keywords
.DFFNS,
Keywords
.TRUE);
2531
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFPID,
Keywords
.DFFNS, parentId);
2533
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.ROWORDER,
Keywords
.MSDNS, _rowsOrder[row]!.ToString());
2559
_xmlw.WriteAttributeString(
Keywords
.XSI,
Keywords
.XSI_NIL,
Keywords
.XSINS,
Keywords
.TRUE);
2571
_xmlw.WriteAttributeString(
Keywords
.MSD, "hidden" + col.EncodedColumnName,
Keywords
.MSDNS, value);
2595
_xmlw.WriteAttributeString(
Keywords
.XML,
Keywords
.SPACE,
Keywords
.XML_XMLNS,
Keywords
.PRESERVE);
2609
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS, DataStorage.GetQualifiedName(valuesType));
2635
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS, valuesType.FullName);
2639
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS,
Keywords
.TYPEINSTANCE);
2643
string xsdTypeName =
Keywords
.XSD_PREFIXCOLON + XmlTreeGen.XmlDataTypeName(valuesType);
2644
_xmlw.WriteAttributeString(
Keywords
.XSI,
Keywords
.TYPE,
Keywords
.XSINS, xsdTypeName);
2645
_xmlw.WriteAttributeString(
Keywords
.XSD_PREFIX,
Keywords
.XMLNS,
Keywords
.XSDNS, xsdTypeName);
2814
_xmlw.WriteStartElement(prefix,
Keywords
.DOCUMENTELEMENT, (_dt!.Namespace == null) ? "" : _dt.Namespace);
2868
_xmlw.WriteStartElement(prefix,
Keywords
.DOCUMENTELEMENT, _dt!.Namespace);
2873
_xmlw.WriteStartElement(prefix,
Keywords
.DOCUMENTELEMENT, _ds.Namespace);
2882
_xmlw.WriteAttributeString(
Keywords
.XMLNS,
Keywords
.XSI,
Keywords
.XSD_XMLNS_NS,
Keywords
.XSINS);
2951
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFID,
Keywords
.DFFNS, row.Table.TableName + row.rowID.ToString(CultureInfo.InvariantCulture));
2953
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.ROWORDER,
Keywords
.MSDNS, _rowsOrder![row]!.ToString());
2957
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.HASCHANGES,
Keywords
.DFFNS,
Keywords
.INSERTED);
2961
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.HASCHANGES,
Keywords
.DFFNS,
Keywords
.MODIFIED);
2966
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.HASERRORS,
Keywords
.DFFNS,
Keywords
.TRUE);
2995
_xmlw.WriteAttributeString(
Keywords
.MSD, "hidden" + col.EncodedColumnName,
Keywords
.MSDNS, col.ConvertObjectToXml(value));
3009
_xmlw.WriteAttributeString(
Keywords
.XSI,
Keywords
.XSI_NIL,
Keywords
.XSINS,
Keywords
.TRUE);
3031
_xmlw.WriteAttributeString(
Keywords
.XML,
Keywords
.SPACE,
Keywords
.XML_XMLNS,
Keywords
.PRESERVE);
3043
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS, DataStorage.GetQualifiedName(valuesType));
3067
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS, valuesType.FullName);
3071
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS,
Keywords
.TYPEINSTANCE);
3075
string xsdTypeName =
Keywords
.XSD_PREFIXCOLON + XmlTreeGen.XmlDataTypeName(valuesType);
3076
_xmlw.WriteAttributeString(
Keywords
.XSI,
Keywords
.TYPE,
Keywords
.XSINS, xsdTypeName);
3077
_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))
715
string mainName = GetStringAttribute(_dsElement,
Keywords
.MSD_MAINDATATABLE, "");
868
if (FEqualIdentity(relations[i],
Keywords
.MSD_RELATION,
Keywords
.MSDNS))
1073
if (ccExtension.BaseTypeName.Namespace !=
Keywords
.XSDNS)
1221
if ((value ==
Keywords
.TRUE) || (value ==
Keywords
.ONE_DIGIT))
1225
if ((value ==
Keywords
.FALSE) || (value ==
Keywords
.ZERO_DIGIT))
1289
string? tableNs = GetMsdataAttribute(keyref,
Keywords
.MSD_TABLENS);
1311
if (GetBooleanAttribute(keyref,
Keywords
.MSD_CONSTRAINTONLY, /*default:*/ false))
1328
string relName = XmlConvert.DecodeName(GetStringAttribute(keyref,
Keywords
.MSD_RELATIONNAME, keyref.Name!));
1361
if (GetBooleanAttribute(keyref,
Keywords
.MSD_ISNESTED, /*default:*/ false))
1367
string? acceptRejectRule = GetMsdataAttribute(keyref,
Keywords
.MSD_ACCEPTREJECTRULE);
1368
string? updateRule = GetMsdataAttribute(keyref,
Keywords
.MSD_UPDATERULE);
1369
string? deleteRule = GetMsdataAttribute(keyref,
Keywords
.MSD_DELETERULE);
1393
throw ExceptionBuilder.MissingAttribute(
Keywords
.NAME);
1400
string? tableNs = GetMsdataAttribute(keyNode,
Keywords
.MSD_TABLENS);
1409
bool fPrimaryKey = GetBooleanAttribute(keyNode,
Keywords
.MSD_PRIMARYKEY, /*default:*/ false);
1592
string? value = GetStringAttribute(typeNode,
Keywords
.MSD_CASESENSITIVE, "");
1595
value = GetStringAttribute(node,
Keywords
.MSD_CASESENSITIVE, "");
1599
if ((value ==
Keywords
.TRUE) || (value == "True"))
1601
if ((value ==
Keywords
.FALSE) || (value == "False"))
1605
value = GetMsdataAttribute(node,
Keywords
.MSD_LOCALE);
1691
bool isNested = GetBooleanAttribute(keyref,
Keywords
.MSD_ISNESTED, /*default:*/ false);
1938
if (_typeNs ==
Keywords
.XSDNS)
1968
if (!string.IsNullOrEmpty(typeNode.QualifiedName.Name) && typeNode.QualifiedName.Namespace !=
Keywords
.XSDNS)
1977
if ((ancestor != null) && (ancestor.QualifiedName.Namespace !=
Keywords
.XSDNS))
2035
if (attrs[i].LocalName ==
Keywords
.MSD_ALLOWDBNULL && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
2036
if (attrs[i].Value ==
Keywords
.FALSE)
2038
if (attrs[i].LocalName ==
Keywords
.MSD_ORDINAL && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
2040
if (attrs[i].LocalName ==
Keywords
.MSD_DEFAULTVALUE && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
2056
if (XSDSchema.GetMsdataAttribute(typeNode,
Keywords
.TARGETNAMESPACE) != null)
2149
if (attrs[i].LocalName ==
Keywords
.MSD_ALLOWDBNULL && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
2150
if (attrs[i].Value ==
Keywords
.FALSE)
2152
if (attrs[i].LocalName ==
Keywords
.MSD_ORDINAL && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
2154
if (attrs[i].LocalName ==
Keywords
.MSD_DEFAULTVALUE && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
2216
if (attr.SchemaTypeName.Namespace !=
Keywords
.XSDNS) // it is UD Simple Type, can it be?
2226
if (!string.IsNullOrEmpty(node.QualifiedName.Name) && node.QualifiedName.Namespace !=
Keywords
.XSDNS)
2298
if (XSDSchema.GetMsdataAttribute(typeNode!,
Keywords
.TARGETNAMESPACE) != null)
2328
column.AllowDBNull = GetBooleanAttribute(attr,
Keywords
.MSD_ALLOWDBNULL, true);
2329
string? defValue = GetMsdataAttribute(attr,
Keywords
.MSD_DEFAULTVALUE);
2343
string? strDefault = (attrib.Use == XmlSchemaUse.Required) ? GetMsdataAttribute(attr,
Keywords
.MSD_DEFAULTVALUE) : attr.DefaultValue;
2391
if (!string.IsNullOrEmpty(((XmlSchemaSimpleType)typeNode).Name) && ((XmlSchemaSimpleType)typeNode).QualifiedName.Namespace !=
Keywords
.XSDNS)
2398
simpleTypeNode = (xsdType.XmlBaseType != null && xsdType.XmlBaseType.Namespace !=
Keywords
.XSDNS) ?
2404
simpleTypeNode = (xsdType.XmlBaseType != null && xsdType.XmlBaseType.Namespace !=
Keywords
.XSDNS) ?
2425
if (string.IsNullOrEmpty(XSDSchema.GetMsdataAttribute(elem,
Keywords
.MSD_DATATYPE)))
2485
if (XSDSchema.GetMsdataAttribute(typeNode!,
Keywords
.TARGETNAMESPACE) != null)
2529
string tmp = GetStringAttribute(elem,
Keywords
.MSD_ORDINAL, (-1).ToString(CultureInfo.CurrentCulture));
2569
string? value = GetMsdataAttribute(node,
Keywords
.MSD_LOCALE);
2585
if (GetBooleanAttribute(node,
Keywords
.MSD_USECURRENTLOCALE, false))
2597
value = GetMsdataAttribute(node,
Keywords
.MSD_DATASETNAME);
2603
value = GetMsdataAttribute(node,
Keywords
.MSD_DATASETNAMESPACE);
2710
bool isNested = GetBooleanAttribute(keyref,
Keywords
.MSD_ISNESTED, /*default:*/ false);
2787
return GetMsdataAttribute(key,
Keywords
.MSD_TABLENS);
2818
if (attrib.LocalName ==
Keywords
.MSD_DATATYPE &&
2819
attrib.Prefix ==
Keywords
.MSD &&
2820
attrib.NamespaceURI ==
Keywords
.MSDNS)
2890
(NamespaceURI ==
Keywords
.XML_XMLNS && LocalName != "lang"))
2914
(NamespaceURI ==
Keywords
.XML_XMLNS && LocalName != "lang"))
System\Xml\XmlBoundElement.cs (1)
289
w.WriteAttributeString("xmlns", "xsi", "http://www.w3.org/2000/xmlns/",
Keywords
.XSINS);
System\Xml\XmlDataDocument.cs (9)
725
XmlAttribute attr = CreateAttribute(XSI,
Keywords
.XSI_NIL,
Keywords
.XSINS);
726
attr.Value =
Keywords
.TRUE;
1458
attr = CreateAttribute(XSI,
Keywords
.XSI_NIL,
Keywords
.XSINS);
1459
attr.Value =
Keywords
.TRUE;
1465
attr.Value =
Keywords
.TRUE;
1473
attr.Value =
Keywords
.FALSE;
1543
attr.Value =
Keywords
.FALSE;